BcContentsBehavior
extends Behavior
in package
uses
BcContainerTrait
Class BcContentsBehavior
Table of Contents
Properties
- $Contents : ContentsTable
- Contents
- $table : Table
- Table
Methods
- afterDelete() : mixed
- After delete
- afterMarshal() : void
- afterMarshal contentの項目がない場合エラーをセットする
- beforeDelete() : mixed
- Before delete
- getService() : array<string|int, mixed>|mixed|object
- Get Service
- hasService() : bool
- Has Service
- initialize() : void
- initialize
Properties
$Contents
Contents
public
ContentsTable
$Contents
$table
Table
public
Table
$table
Methods
afterDelete()
After delete
public
afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed
削除したデータに連携する Content を削除
Parameters
- $event : EventInterface
- $entity : EntityInterface
- $options : ArrayObject
Tags
afterMarshal()
afterMarshal contentの項目がない場合エラーをセットする
public
afterMarshal(EventInterface $event, EventInterface $entity, ArrayObject $data, ArrayObject $options) : void
Parameters
- $event : EventInterface
- $entity : EventInterface
- $data : ArrayObject
- $options : ArrayObject
Tags
beforeDelete()
Before delete
public
beforeDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed
afterDeleteでのContents物理削除準備をする
Parameters
- $event : EventInterface
- $entity : EntityInterface
- $options : ArrayObject
Tags
getService()
Get Service
public
getService(mixed $service) : array<string|int, mixed>|mixed|object
Parameters
- $service : mixed
Tags
Return values
array<string|int, mixed>|mixed|objecthasService()
Has Service
public
hasService(mixed $service) : bool
Parameters
- $service : mixed
Tags
Return values
boolinitialize()
initialize
public
initialize(array<string|int, mixed> $config) : void
Parameters
- $config : array<string|int, mixed>