BcContentsBehavior
extends Behavior
in package
Uses
BcContainerTrait
Class BcContentsBehavior
Table of Contents
- $Contents : ContentsTable
- Contents
- afterDelete() : mixed
- After delete
- afterMarshal() : void
- afterMarshal contentの項目がない場合エラーをセットする
- beforeDelete() : mixed
- Before delete
- findPublished() : array<string|int, mixed>|null
- 公開されたコンテンツを取得する
- getService() : array<string|int, mixed>|mixed|object
- Get Service
- hasService() : bool
- Has Service
- initialize() : void
- initialize
Properties
$Contents
Contents
public
ContentsTable
$Contents
Methods
afterDelete()
After delete
public
afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed
削除したデータに連携する Content を削除
Parameters
- $event : EventInterface
- $entity : EntityInterface
- $options : ArrayObject
Tags
Return values
mixed —afterMarshal()
afterMarshal contentの項目がない場合エラーをセットする
public
afterMarshal(EventInterface $event, EventInterface $entity, ArrayObject $data, ArrayObject $options) : void
Parameters
- $event : EventInterface
- $entity : EventInterface
- $data : ArrayObject
- $options : ArrayObject
Tags
Return values
void —beforeDelete()
Before delete
public
beforeDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed
afterDeleteでのContents物理削除準備をする
Parameters
- $event : EventInterface
- $entity : EntityInterface
- $options : ArrayObject
Tags
Return values
mixed —findPublished()
公開されたコンテンツを取得する
public
findPublished(Model $model[, string $type = 'first' ][, array<string|int, mixed> $query = [] ]) : array<string|int, mixed>|null
Parameters
- $model : Model
- $type : string = 'first'
- $query : array<string|int, mixed> = []
Return values
array<string|int, mixed>|null —getService()
Get Service
public
getService( $service) : array<string|int, mixed>|mixed|object
Parameters
Tags
Return values
array<string|int, mixed>|mixed|object —hasService()
Has Service
public
hasService( $service) : bool
Parameters
Tags
Return values
bool —initialize()
initialize
public
initialize(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>