baserCMS クラスリファレンス

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

Methods

afterDelete()

After delete

public afterDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed

削除したデータに連携する Content を削除

Parameters
$event : EventInterface
$entity : EntityInterface
$options : ArrayObject
Tags
checked
noTodo
unitTest

afterMarshal()

afterMarshal contentの項目がない場合エラーをセットする

public afterMarshal(EventInterface $event, EventInterface $entity, ArrayObject $data, ArrayObject $options) : void
Parameters
$event : EventInterface
$entity : EventInterface
$data : ArrayObject
$options : ArrayObject
Tags
checked
noTodo
unitTest

beforeDelete()

Before delete

public beforeDelete(EventInterface $event, EntityInterface $entity, ArrayObject $options) : mixed

afterDeleteでのContents物理削除準備をする

Parameters
$event : EventInterface
$entity : EntityInterface
$options : ArrayObject
Tags
checked
noTodo
unitTest

getService()

Get Service

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

hasService()

Has Service

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

initialize()

initialize

public initialize(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>
Tags
checked
noTodo
unitTest

        
On this page

Search results