baserCMS クラスリファレンス

ThemesAdminService extends ThemesService
in package
implements ThemesAdminServiceInterface

ThemesAdminService

Table of Contents

Interfaces

ThemesAdminServiceInterface
ThemesAdminServiceInterface

Methods

add()  : string
新しいテーマをアップロードする
apply()  : array<string|int, mixed>
テーマを適用する
checkDefaultDataPattern()  : bool
初期データチェックする
copy()  : bool
コピーする
createDownloadDefaultDataPatternToTmp()  : string
現在のDB内のデータをダウンロード用のCSVとして一時フォルダに作成する
createDownloadToTmp()  : string
指定したテーマをダウンロード用のテーマとして一時フォルダに作成する
delete()  : bool
削除する
get()  : EntityInterface
単一データ取得
getDefaultDataPatterns()  : array<string|int, mixed>
初期データのセットを取得する
getIndex()  : array<string|int, mixed>
一覧データ取得
getMarketThemes()  : array<string|int, mixed>
baserマーケットのテーマ一覧を取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getViewVarsForIndex()  : array<string|int, mixed>
一覧画面用のデータを取得する
hasService()  : bool
Has Service
installThemesPlugins()  : mixed
テーマが梱包するプラグインをインストールする
loadDefaultDataPattern()  : bool
初期データを読み込む
_modifySiteConfigsCsv()  : bool
site_configs テーブルにて、 CSVに出力しないフィールドを空にする
_writeCsv()  : bool
CSVファイルを書きだす
detachCurrentThemesPlugins()  : mixed
現在のテーマのプラグインを無効化する
getThemesDefaultDataInfo()  : array<string|int, mixed>|mixed|array<string|int, string>
テーマが初期データを保有している場合の情報を取得
getThemesPluginsInfo()  : array<string|int, mixed>|array<string|int, string>
指定したテーマが梱包するプラグイン情報を取得

Methods

add()

新しいテーマをアップロードする

public add(array<string|int, UploadedFile$postData) : string
Parameters
$postData : array<string|int, UploadedFile>
Tags
checked
noTodo
unitTest
Return values
string

apply()

テーマを適用する

public apply(Site $site, string $theme) : array<string|int, mixed>
Parameters
$site : Site
$theme : string
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

適用完了後に表示するメッセージ

checkDefaultDataPattern()

初期データチェックする

public checkDefaultDataPattern(string $theme[, string $pattern = 'default' ]) : bool
Parameters
$theme : string
$pattern : string = 'default'
Tags
checked
noTodo
unitTest
Return values
bool

copy()

コピーする

public copy(string $theme) : bool
Parameters
$theme : string
Tags
checked
noTodo
unitTest
Return values
bool

createDownloadDefaultDataPatternToTmp()

現在のDB内のデータをダウンロード用のCSVとして一時フォルダに作成する

public createDownloadDefaultDataPatternToTmp() : string
Tags
checked
noTodo
unitTest
Return values
string

createDownloadToTmp()

指定したテーマをダウンロード用のテーマとして一時フォルダに作成する

public createDownloadToTmp(string $theme) : string
Parameters
$theme : string
Tags
checked
noTodo
unitTest
Return values
string

delete()

削除する

public delete(string $theme) : bool
Parameters
$theme : string
Tags
checked
noTodo
unitTest
Return values
bool

get()

単一データ取得

public get(string $theme) : EntityInterface
Parameters
$theme : string
Tags
checked
unitTest
noTodo
Return values
EntityInterface

getDefaultDataPatterns()

初期データのセットを取得する

public getDefaultDataPatterns([string $theme = '' ][, array<string|int, mixed> $options = [] ]) : array<string|int, mixed>
Parameters
$theme : string = ''
$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getIndex()

一覧データ取得

public getIndex() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getMarketThemes()

baserマーケットのテーマ一覧を取得する

public getMarketThemes() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

getViewVarsForIndex()

一覧画面用のデータを取得する

public getViewVarsForIndex(array<string|int, mixed> $themes) : array<string|int, mixed>
Parameters
$themes : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

installThemesPlugins()

テーマが梱包するプラグインをインストールする

public installThemesPlugins(string $theme) : mixed
Parameters
$theme : string
Tags
throws
Exception
checked
unitTest
noTodo

loadDefaultDataPattern()

初期データを読み込む

public loadDefaultDataPattern(string $currentTheme, string $dbDataPattern) : bool
Parameters
$currentTheme : string
$dbDataPattern : string
Tags
checked
noTodo
unitTest
Return values
bool

_modifySiteConfigsCsv()

site_configs テーブルにて、 CSVに出力しないフィールドを空にする

protected _modifySiteConfigsCsv(string $path) : bool
Parameters
$path : string
Tags
checked
noTodo
unitTest
Return values
bool

_writeCsv()

CSVファイルを書きだす

protected _writeCsv(mixed $plugin, string $path[, mixed $exclude = [] ]) : bool
Parameters
$plugin : mixed
$path : string
$exclude : mixed = []
Tags
checked
noTodo
unitTest
Return values
bool

detachCurrentThemesPlugins()

現在のテーマのプラグインを無効化する

private detachCurrentThemesPlugins() : mixed
Tags
checked
unitTest
noTodo

getThemesDefaultDataInfo()

テーマが初期データを保有している場合の情報を取得

private getThemesDefaultDataInfo(string $theme[, array<string|int, mixed> $info = [] ]) : array<string|int, mixed>|mixed|array<string|int, string>
Parameters
$theme : string
$info : array<string|int, mixed> = []
Tags
noTodo
checked
unitTest
Return values
array<string|int, mixed>|mixed|array<string|int, string>

getThemesPluginsInfo()

指定したテーマが梱包するプラグイン情報を取得

private getThemesPluginsInfo(string $theme) : array<string|int, mixed>|array<string|int, string>
Parameters
$theme : string
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|array<string|int, string>

        
On this page

Search results