PHP Class InstallationsController

Inheritance: extends AppController
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$components array コンポーネント
$helpers array ヘルパー
$isInstalled
$layoutPath string レイアウトパス
$name string クラス名
$subDir string サブフォルダ
$theme string テーマ
$uses array モデル

Méthodes publiques

Méthode Description
_deleteAllTables ( ) : void 全てのテーブルを削除する
alert ( ) : void インストール不能警告メッセージを表示
beforeFilter ( ) : void beforeFilter
index ( ) : void Step 1: ウェルカムページ
reset ( ) : void baserCMSを初期化する debug フラグが -1 の場合のみ実行可能
step2 ( ) : void Step 2: 必須条件チェック
step3 ( ) : void Step 3: データベースの接続設定
step4 ( ) : void Step 4: データベース生成/管理者ユーザー作成
step5 ( ) : void Step 5: 設定ファイルの生成 データベース設定ファイル[database.php] インストールファイル[install.php]

Méthodes protégées

Méthode Description
_constructionDb ( type $dbDataPattern = null ) : boolean データベースを構築する
_getDbSource ( ) : array 利用可能なデータソースを取得する
_getDefaultValuesStep3 ( ) : array ステップ3用のフォーム初期値を取得する
_getDefaultValuesStep4 ( ) : array ステップ4用のフォーム初期値を取得する
_login ( ) : void 管理画面にログインする
_readDbSetting ( $installationData = [] ) : array DB設定をセッションから取得
_sendCompleteMail ( string $email, string $name, string $password ) : void インストール完了メールを送信する
_testConnectDb ( array $config ) : boolean データベース接続テスト
_writeDbSettingToSession ( array $data ) : void DB設定をセッションに保存

Method Details

_constructionDb() protected méthode

データベースを構築する
protected _constructionDb ( type $dbDataPattern = null ) : boolean
$dbDataPattern type データパターン
Résultat boolean

_deleteAllTables() public méthode

全てのテーブルを削除する
public _deleteAllTables ( ) : void
Résultat void

_getDbSource() protected méthode

利用可能なデータソースを取得する
protected _getDbSource ( ) : array
Résultat array

_getDefaultValuesStep3() protected méthode

ステップ3用のフォーム初期値を取得する
protected _getDefaultValuesStep3 ( ) : array
Résultat array

_getDefaultValuesStep4() protected méthode

ステップ4用のフォーム初期値を取得する
protected _getDefaultValuesStep4 ( ) : array
Résultat array

_login() protected méthode

管理画面にログインする
protected _login ( ) : void
Résultat void

_readDbSetting() protected méthode

DB設定をセッションから取得
protected _readDbSetting ( $installationData = [] ) : array
Résultat array

_sendCompleteMail() protected méthode

インストール完了メールを送信する
protected _sendCompleteMail ( string $email, string $name, string $password ) : void
$email string
$name string
$password string
Résultat void

_testConnectDb() protected méthode

データベース接続テスト
protected _testConnectDb ( array $config ) : boolean
$config array
Résultat boolean

_writeDbSettingToSession() protected méthode

DB設定をセッションに保存
protected _writeDbSettingToSession ( array $data ) : void
$data array
Résultat void

alert() public méthode

インストール不能警告メッセージを表示
public alert ( ) : void
Résultat void

beforeFilter() public méthode

beforeFilter
public beforeFilter ( ) : void
Résultat void

index() public méthode

Step 1: ウェルカムページ
public index ( ) : void
Résultat void

reset() public méthode

baserCMSを初期化する debug フラグが -1 の場合のみ実行可能
public reset ( ) : void
Résultat void

step2() public méthode

Step 2: 必須条件チェック
public step2 ( ) : void
Résultat void

step3() public méthode

Step 3: データベースの接続設定
public step3 ( ) : void
Résultat void

step4() public méthode

Step 4: データベース生成/管理者ユーザー作成
public step4 ( ) : void
Résultat void

step5() public méthode

Step 5: 設定ファイルの生成 データベース設定ファイル[database.php] インストールファイル[install.php]
public step5 ( ) : void
Résultat void

Property Details

$components public_oe property

コンポーネント
public array $components
Résultat array

$helpers public_oe property

ヘルパー
public array $helpers
Résultat array

$isInstalled public_oe property

public $isInstalled

$layoutPath public_oe property

レイアウトパス
public string $layoutPath
Résultat string

$name public_oe property

クラス名
public string $name
Résultat string

$subDir public_oe property

サブフォルダ
public string $subDir
Résultat string

$theme public_oe property

テーマ
public string $theme
Résultat string

$uses public_oe property

モデル
public array $uses
Résultat array