PHP Class ThemesController

Since: 0.5a
Inheritance: extends ManagementAppController
Datei anzeigen Open project: baserproject/basercms Class Usage Examples

Public Properties

Property Type Description
$components array コンポーネント
$crumbs array パンくずナビ
$helpers array ヘルパー
$name string コントローラー名
$uses array モデル

Public Methods

Method Description
_writeCsv ( $plugin, string $path, $exclude = [] ) : boolean CSVファイルを書きだす
admin_add ( ) テーマをアップロードして適用する
admin_ajax_copy ( string $theme ) : void テーマをコピーする
admin_ajax_delete ( string $theme ) : void テーマを削除する (ajax)
admin_ajax_get_market_themes ( ) baserマーケットのテーマデータを取得する
admin_apply ( string $theme ) : void テーマを適用する
admin_del ( string $theme ) : void テーマを削除する
admin_download_default_data_pattern ( ) 初期データセットをダウンロードする
admin_edit ( string $theme ) : void テーマ名編集
admin_index ( ) : void テーマ一覧
admin_load_default_data_pattern ( ) : void 初期データセットを読み込む
admin_reset_data ( ) : void コアの初期データを読み込む

Protected Methods

Method Description
_applyTheme ( $theme )
_copy ( string $theme ) : boolean テーマをコピーする
_del ( string $theme ) : boolean データを削除する
_loadThemeInfo ( string $themename ) : array テーマ情報を読み込む
_load_default_data_pattern ( string $dbDataPattern, string $currentTheme = '' ) : boolean 初期データを読み込む

Method Details

_applyTheme() protected method

protected _applyTheme ( $theme )

_copy() protected method

テーマをコピーする
protected _copy ( string $theme ) : boolean
$theme string
return boolean

_del() protected method

データを削除する
protected _del ( string $theme ) : boolean
$theme string テーマ名
return boolean

_loadThemeInfo() protected method

テーマ情報を読み込む
protected _loadThemeInfo ( string $themename ) : array
$themename string テーマ名
return array

_load_default_data_pattern() protected method

初期データを読み込む
protected _load_default_data_pattern ( string $dbDataPattern, string $currentTheme = '' ) : boolean
$dbDataPattern string 初期データのパターン
$currentTheme string テーマ名
return boolean

_writeCsv() public method

CSVファイルを書きだす
public _writeCsv ( $plugin, string $path, $exclude = [] ) : boolean
$path string
return boolean

admin_add() public method

テーマをアップロードして適用する
public admin_add ( )

admin_ajax_copy() public method

テーマをコピーする
public admin_ajax_copy ( string $theme ) : void
$theme string
return void

admin_ajax_delete() public method

テーマを削除する (ajax)
public admin_ajax_delete ( string $theme ) : void
$theme string
return void

admin_ajax_get_market_themes() public method

baserマーケットのテーマデータを取得する

admin_apply() public method

テーマを適用する
public admin_apply ( string $theme ) : void
$theme string
return void

admin_del() public method

テーマを削除する
public admin_del ( string $theme ) : void
$theme string
return void

admin_download_default_data_pattern() public method

初期データセットをダウンロードする

admin_edit() public method

テーマ名編集
public admin_edit ( string $theme ) : void
$theme string
return void

admin_index() public method

テーマ一覧
public admin_index ( ) : void
return void

admin_load_default_data_pattern() public method

初期データセットを読み込む

admin_reset_data() public method

コアの初期データを読み込む
public admin_reset_data ( ) : void
return void

Property Details

$components public_oe property

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

$crumbs public_oe property

パンくずナビ
public array $crumbs
return array

$helpers public_oe property

ヘルパー
public array $helpers
return array

$name public_oe property

コントローラー名
public string $name
return string

$uses public_oe property

モデル
public array $uses
return array