PHP Class GcFrontend\Controller\InstallController

Inheritance: extends Gc\Mvc\Controller\Action
Datei anzeigen Open project: gotcms/gotcms

Protected Properties

Property Type Description
$installForm GcFrontend\Form\Install Install form
$umask integer Umask

Public Methods

Method 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

Protected Methods

Method 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 method

Check configuration
public checkConfigAction ( ) : array
return array

checkInstall() protected method

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

completeAction() public method

Complete installation
public completeAction ( ) : Zend\View\Model\JsonModel
return Zend\View\Model\JsonModel

completeInstallation() protected method

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

configurationAction() public method

Configuration
public configurationAction ( ) : array
return array

createDatabase() protected method

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

createUsersAndRoles() protected method

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
return Zend\View\Model\JsonModel | null

databaseAction() public method

Display database information
public databaseAction ( ) : array
return array

indexAction() public method

Select language in first page
public indexAction ( ) : array
return array

init() public method

Initialize Installer
public init ( ) : Zend\Http\Response | null
return Zend\Http\Response | null

insertData() protected method

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
return void

insertTranslations() protected method

Insert translations into database
protected insertTranslations ( array $session ) : void
$session array Session array
return void

installTemplate() protected method

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
return Zend\View\Model\JsonModel | null

licenseAction() public method

Display license
public licenseAction ( ) : array
return array

Property Details

$installForm protected_oe property

Install form
protected Install,GcFrontend\Form $installForm
return GcFrontend\Form\Install

$umask protected_oe property

Umask
protected int $umask
return integer