baserCMS クラスリファレンス

CustomTablesService
in package
implements CustomTablesServiceInterface Uses BcContainerTrait

CustomTablesService

Table of Contents

Interfaces

CustomTablesServiceInterface
CustomTablesServiceInterface

Properties

$CustomTables  : CustomTablesTable

Methods

__construct()  : mixed
Constructor
create()  : EntityInterface
カスタムテーブルを新規登録する
delete()  : bool
カスタムテーブルを削除する
get()  : EntityInterface
カスタムテーブルの単一データを取得する
getControlSource()  : array<string|int, mixed>
コントロールソースを取得する
getCustomContentId()  : false|mixed
カスタムコンテンツIDを取得する
getIndex()  : Query
カスタムテーブルの一覧データを取得する
getList()  : array<string|int, mixed>
カスタムテーブルのリストを取得する
getNew()  : EntityInterface
カスタムテーブルの初期値となるエンティティを取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getWithContentAndLinks()  : EntityInterface
カスタムテーブルについてカスタムコンテンツと関連フィールドを一緒に取得する
getWithLinks()  : EntityInterface
カスタムテーブルについて関連フィールドを一緒に取得する
hasCustomContent()  : bool
カスタムコンテンツを持っているかどうか判定
hasService()  : bool
Has Service
update()  : EntityInterface
カスタムテーブルを編集する

Properties

Methods

create()

カスタムテーブルを新規登録する

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

delete()

カスタムテーブルを削除する

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

get()

カスタムテーブルの単一データを取得する

public get(int $id[, mixed $options = [] ]) : EntityInterface
Parameters
$id : int
$options : 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>

getCustomContentId()

カスタムコンテンツIDを取得する

public getCustomContentId(int $id) : false|mixed
Parameters
$id : int
Tags
checked
noTodo
unitTest
Return values
false|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> $options = [] ]) : array<string|int, mixed>
Parameters
$options : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

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

カスタムテーブルについてカスタムコンテンツと関連フィールドを一緒に取得する

public getWithContentAndLinks(int $tableId) : EntityInterface
Parameters
$tableId : int
Tags
checked
noTodo
unitTest
Return values
EntityInterface

カスタムテーブルについて関連フィールドを一緒に取得する

public getWithLinks(int $tableId) : EntityInterface
Parameters
$tableId : int
Tags
checked
noTodo
unitTest
Return values
EntityInterface

hasCustomContent()

カスタムコンテンツを持っているかどうか判定

public hasCustomContent(int $tableId) : bool
Parameters
$tableId : int
Tags
checked
noTodo
unitTest
Return values
bool

hasService()

Has Service

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

update()

カスタムテーブルを編集する

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

        
On this page

Search results