PHP Class Redaxscript\Controller\Install

Since: 3.0.0
Author: Henry Ruhs
Author: Balázs Szilágyi
Inheritance: extends ControllerAbstract
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_config object instance of the config class

Public Methods

Method Description
__construct ( Registry $registry, Language $language, Request $request, Config $config ) construct of the class
process ( ) : string process the class

Protected Methods

Method Description
_error ( array $errorArray = [] ) : string show the error
_install ( array $installArray = [] ) : array install the database
_mail ( array $mailArray = [] ) : boolean send the mail
_refresh ( ) : array refresh the connection
_success ( array $successArray = [] ) : string show the success
_validateAccount ( array $postArray = [] ) : array validate the account
_validateDatabase ( array $postArray = [] ) : array validate the database
_warning ( array $warningArray = [] ) : string show the warning
_write ( array $configArray = [] ) : array write config file

Method Details

__construct() public method

construct of the class
Since: 3.0.0
public __construct ( Registry $registry, Language $language, Request $request, Config $config )
$registry Redaxscript\Registry
$language Redaxscript\Language
$request Redaxscript\Request
$config Redaxscript\Config

_error() protected method

show the error
Since: 3.0.0
protected _error ( array $errorArray = [] ) : string
$errorArray array
return string

_install() protected method

install the database
Since: 3.0.0
protected _install ( array $installArray = [] ) : array
$installArray array
return array

_mail() protected method

send the mail
Since: 3.0.0
protected _mail ( array $mailArray = [] ) : boolean
$mailArray array
return boolean

_refresh() protected method

refresh the connection
Since: 3.0.0
protected _refresh ( ) : array
return array

_success() protected method

show the success
Since: 3.0.0
protected _success ( array $successArray = [] ) : string
$successArray array
return string

_validateAccount() protected method

validate the account
Since: 3.0.0
protected _validateAccount ( array $postArray = [] ) : array
$postArray array array to be validated
return array

_validateDatabase() protected method

validate the database
Since: 3.0.0
protected _validateDatabase ( array $postArray = [] ) : array
$postArray array array to be validated
return array

_warning() protected method

show the warning
Since: 3.0.0
protected _warning ( array $warningArray = [] ) : string
$warningArray array array of the warning
return string

_write() protected method

write config file
Since: 3.0.0
protected _write ( array $configArray = [] ) : array
$configArray array
return array

process() public method

process the class
Since: 3.0.0
public process ( ) : string
return string

Property Details

$_config protected property

instance of the config class
protected object $_config
return object