PHP Класс Airship\Installer\Install

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$autoSave boolean
$csrf Airship\Engine\Security\CSRF
$data array
$db Database
$twig Twig_Environment

Открытые методы

Метод Описание
__construct ( Twig_Environment $twig, array $data = [] ) Install constructor.
__destruct ( ) Save configuration on destruct
currentStep ( ) This is the landing point for the current step in the installation process.
isPasswordWeak ( array $post ) : boolean Is this password too weak?

Защищенные методы

Метод Описание
databaseFinalPgsql ( ) Reset the sequence values.
display ( string $template ) : boolean Render a template
enumerateDrivers ( ) : array This method is where we will detect and enumerate all of our supported drivers.
fastFinish ( array $post ) : array
finalConfigCabins ( Twig_Environment $twig ) : string Get the data for the cabins.json file
finalConfigDatabases ( Twig_Environment $twig ) : string Get the data for the databases.json file
finalConfigUniversal ( Twig_Environment $twig ) : string Get the data for the universal.json file
finalConfiguration ( ) Save all of the necessary configuration files
finalDatabasePrimary ( ) : Database Get the primary database (part of the finalize process)
finalDatabaseSetup ( ) Set up the database tables, views, etc.
finalDefaultPages ( ) Create the default pages (about, contact).
finalProcessAdminAccount ( ) Create the admin user account
finalShutdown ( ) The last phase of the installer
finalize ( array $post = [] ) Finalize the install process
isHTTPS ( ) : boolean
post ( boolean $ignoreCSRFToken = false ) : array | boolean Grab post data, but only if the CSRF token is valid
processAdminAccount ( array $post = [] ) Store your admin account credentials.
processCabins ( array $post = [] ) Store our database configuration information, then proceed to step 2.
processConfig ( array $post = [] ) Store our database configuration information, then proceed to step 2.
processDatabase ( array $post = [] ) Store our database configuration information, then proceed to step 2.
testForTor ( ) This will attempt to connect to a Tor Hidden Service, to see if Tor is available for use.

Описание методов

__construct() публичный метод

Install constructor.
public __construct ( Twig_Environment $twig, array $data = [] )
$twig Twig_Environment
$data array

__destruct() публичный метод

Save configuration on destruct
public __destruct ( )

currentStep() публичный метод

This is the landing point for the current step in the installation process.
public currentStep ( )

databaseFinalPgsql() защищенный метод

Reset the sequence values.
protected databaseFinalPgsql ( )

display() защищенный метод

Render a template
protected display ( string $template ) : boolean
$template string
Результат boolean

enumerateDrivers() защищенный метод

This method is where we will detect and enumerate all of our supported drivers.
protected enumerateDrivers ( ) : array
Результат array

fastFinish() защищенный метод

protected fastFinish ( array $post ) : array
$post array
Результат array

finalConfigCabins() защищенный метод

This is in a separate method so it can be unit tested
protected finalConfigCabins ( Twig_Environment $twig ) : string
$twig Twig_Environment
Результат string

finalConfigDatabases() защищенный метод

This is in a separate method so it can be unit tested
protected finalConfigDatabases ( Twig_Environment $twig ) : string
$twig Twig_Environment
Результат string

finalConfigUniversal() защищенный метод

This is in a separate method so it can be unit tested
protected finalConfigUniversal ( Twig_Environment $twig ) : string
$twig Twig_Environment
Результат string

finalConfiguration() защищенный метод

Save all of the necessary configuration files
protected finalConfiguration ( )

finalDatabasePrimary() защищенный метод

Get the primary database (part of the finalize process)
protected finalDatabasePrimary ( ) : Database
Результат Database

finalDatabaseSetup() защищенный метод

Set up the database tables, views, etc.
protected finalDatabaseSetup ( )

finalDefaultPages() защищенный метод

Create the default pages (about, contact).
protected finalDefaultPages ( )

finalProcessAdminAccount() защищенный метод

Create the admin user account
protected finalProcessAdminAccount ( )

finalShutdown() защищенный метод

The last phase of the installer
protected finalShutdown ( )

finalize() защищенный метод

Finalize the install process
protected finalize ( array $post = [] )
$post array

isHTTPS() защищенный метод

protected isHTTPS ( ) : boolean
Результат boolean

isPasswordWeak() публичный метод

Is this password too weak?
public isPasswordWeak ( array $post ) : boolean
$post array
Результат boolean

post() защищенный метод

Grab post data, but only if the CSRF token is valid
protected post ( boolean $ignoreCSRFToken = false ) : array | boolean
$ignoreCSRFToken boolean - Don't validate CSRF tokens
Результат array | boolean

processAdminAccount() защищенный метод

Store your admin account credentials.
protected processAdminAccount ( array $post = [] )
$post array

processCabins() защищенный метод

Store our database configuration information, then proceed to step 2.
protected processCabins ( array $post = [] )
$post array

processConfig() защищенный метод

Store our database configuration information, then proceed to step 2.
protected processConfig ( array $post = [] )
$post array

processDatabase() защищенный метод

Store our database configuration information, then proceed to step 2.
protected processDatabase ( array $post = [] )
$post array

testForTor() защищенный метод

This will attempt to connect to a Tor Hidden Service, to see if Tor is available for use.
protected testForTor ( )

Описание свойств

$autoSave защищенное свойство

protected bool $autoSave
Результат boolean

$csrf защищенное свойство

protected CSRF,Airship\Engine\Security $csrf
Результат Airship\Engine\Security\CSRF

$data защищенное свойство

protected array $data
Результат array

$db защищенное свойство

protected Database $db
Результат Database

$twig защищенное свойство

protected Twig_Environment $twig
Результат Twig_Environment