baserCMS クラスリファレンス

CustomContentsAdminService extends CustomContentsService
in package
implements CustomContentsAdminServiceInterface

CustomContentsAdminService

Table of Contents

Interfaces

CustomContentsAdminServiceInterface
CustomContentsAdminServiceInterface

Properties

$CustomContents  : CustomContentsTable|Table
CustomContents Table
$CustomContents  : CustomContentsTable

Methods

__construct()  : mixed
Constructor
create()  : EntityInterface
カスタムコンテンツを登録する
delete()  : bool
get()  : EntityInterface
カスタムコンテンツの単一データ取得する
getControlSource()  : array<string|int, mixed>
カスタムコンテンツに関連するコントロールのソースを取得する
getIndex()  : Query
カスタムコンテンツの一覧データ取得する
getList()  : array<string|int, mixed>
リストを取得する
getListOrders()  : array<string|int, string>
並び順フィールドのリストを取得
getNew()  : EntityInterface
カスタムコンテンツの初期値となるエンティティを取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getTemplates()  : array<string|int, mixed>
テンプレートのリストを取得
getViewVarsForEdit()  : array<string|int, mixed>
カスタムコンテンツ編集画面用の View 変数を取得する
hasService()  : bool
Has Service
unsetTable()  : void
関連づいたカスタムテーブルを除外する
update()  : EntityInterface
カスタムコンテンツを更新する

Properties

Methods

create()

カスタムコンテンツを登録する

public create(array<string|int, mixed> $postData[, array<string|int, mixed> $options = [] ]) : EntityInterface
Parameters
$postData : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
throws
PersistenceFailedException
checked
noTodo
unitTest
Return values
EntityInterface

delete()

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

get()

カスタムコンテンツの単一データ取得する

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

getControlSource()

カスタムコンテンツに関連するコントロールのソースを取得する

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

getIndex()

カスタムコンテンツの一覧データ取得する

public getIndex([array<string|int, mixed> $queryParams = [] ]) : Query
Parameters
$queryParams : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
Query

getList()

リストを取得する

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

getListOrders()

並び順フィールドのリストを取得

public getListOrders(int $tableId) : array<string|int, string>
Parameters
$tableId : int
Tags
checked
noTodo
unitTest
Return values
array<string|int, string>

getNew()

カスタムコンテンツの初期値となるエンティティを取得する

public getNew() : EntityInterface
Tags
checked
noTodo
unitTest
Return values
EntityInterface

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

getTemplates()

テンプレートのリストを取得

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

getViewVarsForEdit()

カスタムコンテンツ編集画面用の View 変数を取得する

public getViewVarsForEdit(EntityInterface $entity) : array<string|int, mixed>
Parameters
$entity : EntityInterface
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

unsetTable()

関連づいたカスタムテーブルを除外する

public unsetTable(int $tableId) : void

全てのカスタムコンテンツを対象とする

Parameters
$tableId : int
Tags
checked
noTodo
unitTest

update()

カスタムコンテンツを更新する

public update(EntityInterface $entity, array<string|int, mixed> $postData[, array<string|int, mixed> $options = [] ]) : EntityInterface
Parameters
$entity : EntityInterface
$postData : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
throws
PersistenceFailedException
checked
noTodo
unitTest
Return values
EntityInterface

        
On this page

Search results