BcModelEventDispatcher
in package
implements
EventListenerInterface
Class BcModelEventDispatcher
モデルイベントディスパッチャ
beforeFind 等の、CakePHPのモデル向け標準イベントについて、 モデルごとにイベントをディスパッチする。 bootstrap で、attach される。
《イベント名の命名規則》 Model.ModelName.eventName
Table of Contents
Interfaces
- EventListenerInterface
Methods
- afterDelete() : void
- afterDelete
- afterFind() : array<string|int, mixed>|true
- afterFind
- afterMarshal() : void
- afterMarshal
- afterSave() : void
- afterSave
- beforeDelete() : bool
- beforeDelete
- beforeFind() : array<string|int, mixed>|true
- beforeFind
- beforeMarshal() : bool
- beforeMarshal
- beforeSave() : bool
- beforeSave
- implementedEvents() : array<string|int, mixed>
- implementedEvents
Methods
afterDelete()
afterDelete
public
afterDelete(Event $event) : void
Parameters
- $event : Event
Tags
afterFind()
afterFind
public
afterFind(Event $event) : array<string|int, mixed>|true
Parameters
- $event : Event
Tags
Return values
array<string|int, mixed>|trueafterMarshal()
afterMarshal
public
afterMarshal(Event $event) : void
Parameters
- $event : Event
Tags
afterSave()
afterSave
public
afterSave(Event $event) : void
Parameters
- $event : Event
Tags
beforeDelete()
beforeDelete
public
beforeDelete(Event $event) : bool
Parameters
- $event : Event
Tags
Return values
boolbeforeFind()
beforeFind
public
beforeFind(Event $event) : array<string|int, mixed>|true
Parameters
- $event : Event
Tags
Return values
array<string|int, mixed>|truebeforeMarshal()
beforeMarshal
public
beforeMarshal(Event $event) : bool
Parameters
- $event : Event
Tags
Return values
boolbeforeSave()
beforeSave
public
beforeSave(Event $event) : bool
Parameters
- $event : Event
Tags
Return values
boolimplementedEvents()
implementedEvents
public
implementedEvents() : array<string|int, mixed>