PHP Class InstallationsController

Inheritance: extends AppController
Exibir arquivo Open project: baserproject/basercms

Public Properties

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

Public Methods

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

Protected Methods

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

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

_deleteAllTables() public method

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

_getDbSource() protected method

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

_getDefaultValuesStep3() protected method

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

_getDefaultValuesStep4() protected method

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

_login() protected method

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

_readDbSetting() protected method

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

_sendCompleteMail() protected method

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

_testConnectDb() protected method

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

_writeDbSettingToSession() protected method

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

alert() public method

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

beforeFilter() public method

beforeFilter
public beforeFilter ( ) : void
return void

index() public method

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

reset() public method

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

step2() public method

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

step3() public method

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

step4() public method

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

step5() public method

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

Property Details

$components public_oe property

コンポーネント
public array $components
return array

$helpers public_oe property

ヘルパー
public array $helpers
return array

$isInstalled public_oe property

public $isInstalled

$layoutPath public_oe property

レイアウトパス
public string $layoutPath
return string

$name public_oe property

クラス名
public string $name
return string

$subDir public_oe property

サブフォルダ
public string $subDir
return string

$theme public_oe property

テーマ
public string $theme
return string

$uses public_oe property

モデル
public array $uses
return array