PHP Class GcFrontend\Controller\InstallController

Inheritance: extends Gc\Mvc\Controller\Action
Afficher le fichier Open project: gotcms/gotcms

Protected Properties

Свойство Type Description
$installForm GcFrontend\Form\Install Install form
$umask integer Umask

Méthodes publiques

Méthode Description
checkConfigAction ( ) : array Check configuration
completeAction ( ) : Zend\View\Model\JsonModel Complete installation
configurationAction ( ) : array Configuration
databaseAction ( ) : array Display database information
indexAction ( ) : array Select language in first page
init ( ) : Zend\Http\Response | null Initialize Installer
licenseAction ( ) : array Display license

Méthodes protégées

Méthode Description
checkInstall ( string $step ) : Zend\View\Model\ViewModel Check install step
completeInstallation ( array $db ) : Zend\View\Model\JsonModel Insert data into database
createDatabase ( Zend\Db\Adapter\Adapter $dbAdapter, string $sqlType ) : void Create database
createUsersAndRoles ( Zend\Db\Adapter\Adapter $dbAdapter, array $configuration, string $sqlType ) : Zend\View\Model\JsonModel | null Create users and roles
insertData ( Zend\Db\Adapter\Adapter $dbAdapter, Zend\Session\Container $session ) : void Insert data into database
insertTranslations ( array $session ) : void Insert translations into database
installTemplate ( Zend\Db\Adapter\Adapter $dbAdapter, string $template, string $sqlType ) : Zend\View\Model\JsonModel | null Insert data into database

Method Details

checkConfigAction() public méthode

Check configuration
public checkConfigAction ( ) : array
Résultat array

checkInstall() protected méthode

Check install step
protected checkInstall ( string $step ) : Zend\View\Model\ViewModel
$step string Installation step
Résultat Zend\View\Model\ViewModel

completeAction() public méthode

Complete installation
public completeAction ( ) : Zend\View\Model\JsonModel
Résultat Zend\View\Model\JsonModel

completeInstallation() protected méthode

Insert data into database
protected completeInstallation ( array $db ) : Zend\View\Model\JsonModel
$db array Database information
Résultat Zend\View\Model\JsonModel

configurationAction() public méthode

Configuration
public configurationAction ( ) : array
Résultat array

createDatabase() protected méthode

Create database
protected createDatabase ( Zend\Db\Adapter\Adapter $dbAdapter, string $sqlType ) : void
$dbAdapter Zend\Db\Adapter\Adapter Database adapter
$sqlType string Sql database type
Résultat void

createUsersAndRoles() protected méthode

Create users and roles
protected createUsersAndRoles ( Zend\Db\Adapter\Adapter $dbAdapter, array $configuration, string $sqlType ) : Zend\View\Model\JsonModel | null
$dbAdapter Zend\Db\Adapter\Adapter Database adapter
$configuration array Configuration
$sqlType string Sql database type
Résultat Zend\View\Model\JsonModel | null

databaseAction() public méthode

Display database information
public databaseAction ( ) : array
Résultat array

indexAction() public méthode

Select language in first page
public indexAction ( ) : array
Résultat array

init() public méthode

Initialize Installer
public init ( ) : Zend\Http\Response | null
Résultat Zend\Http\Response | null

insertData() protected méthode

Insert data into database
protected insertData ( Zend\Db\Adapter\Adapter $dbAdapter, Zend\Session\Container $session ) : void
$dbAdapter Zend\Db\Adapter\Adapter Database adapter
$session Zend\Session\Container Session array
Résultat void

insertTranslations() protected méthode

Insert translations into database
protected insertTranslations ( array $session ) : void
$session array Session array
Résultat void

installTemplate() protected méthode

Insert data into database
protected installTemplate ( Zend\Db\Adapter\Adapter $dbAdapter, string $template, string $sqlType ) : Zend\View\Model\JsonModel | null
$dbAdapter Zend\Db\Adapter\Adapter Database adapter
$template string Template name
$sqlType string Sql database type
Résultat Zend\View\Model\JsonModel | null

licenseAction() public méthode

Display license
public licenseAction ( ) : array
Résultat array

Property Details

$installForm protected_oe property

Install form
protected Install,GcFrontend\Form $installForm
Résultat GcFrontend\Form\Install

$umask protected_oe property

Umask
protected int $umask
Résultat integer