PHP 클래스 Airship\Installer\Install

파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$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