baserCMS クラスリファレンス

BlogContentsAdminService extends BlogContentsService
in package
implements BlogContentsAdminServiceInterface

BlogContentsAdminService

Table of Contents

Interfaces

BlogContentsAdminServiceInterface
BlogContentsAdminServiceInterface

Properties

$BlogContents  : BlogContentsTable|Table
BlogContents
$BlogContents  : BlogContentsTable

Methods

__construct()  : mixed
Construct
checkRequireSearchIndexReconstruction()  : bool
検索インデックスの再構築が必要か判定
copy()  : EntityInterface
ブログをコピーする
create()  : EntityInterface
ブログ登録
delete()  : bool
ブログを削除する
findByName()  : array<string|int, mixed>|EntityInterface|null
コンテンツ名よりブログコンテンツを取得する
get()  : EntityInterface|array<string|int, mixed>|null
単一データ取得
getContentsTemplateRelativePath()  : string
コンテンツテンプレートの相対パスを取得する
getControlSource()  : array<string|int, mixed>|false
コントロールソースを取得する
getIndex()  : Query
一覧データを取得
getList()  : array<string|int, mixed>
リストを取得する
getNew()  : EntityInterface
初期値を取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getViewVarsForEdit()  : array<string|int, mixed>
編集画面用の view 変数を取得
hasService()  : bool
Has Service
update()  : EntityInterface
更新

Properties

Methods

checkRequireSearchIndexReconstruction()

検索インデックスの再構築が必要か判定

public checkRequireSearchIndexReconstruction(Content|EntityInterface $before, Content|EntityInterface $after) : bool
Parameters
$before : Content|EntityInterface
$after : Content|EntityInterface
Tags
checked
noTodo
unitTest
Return values
bool

copy()

ブログをコピーする

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

$result

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(int $id) : bool
Parameters
$id : int
Tags
checked
noTodo
unitTest
Return values
bool

findByName()

コンテンツ名よりブログコンテンツを取得する

public findByName(string $name) : array<string|int, mixed>|EntityInterface|null

Contents を含む

Parameters
$name : string
Return values
array<string|int, mixed>|EntityInterface|null

get()

単一データ取得

public get(int $id[, array<string|int, mixed> $options = [] ]) : EntityInterface|array<string|int, mixed>|null
Parameters
$id : int
$options : array<string|int, mixed> = []
  • status: ステータス。 publish を指定すると公開状態のもののみ取得(初期値:全て)
Tags
checked
noTodo
unitTest
Return values
EntityInterface|array<string|int, mixed>|null

getContentsTemplateRelativePath()

コンテンツテンプレートの相対パスを取得する

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

getControlSource()

コントロールソースを取得する

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

コントロールソース

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>

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

getViewVarsForEdit()

編集画面用の view 変数を取得

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

update()

更新

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

        
On this page

Search results