PluginEventBehavior
extends CModelBehavior
in package
Table of Contents
Methods
- afterDelete() : mixed
- afterSave() : mixed
- beforeDelete() : mixed
- beforeSave() : mixed
- dispatchPluginModelEvent() : PluginEvent
- method for dispatching plugin events
- events() : mixed
- dispatchDynamic() : PluginEvent
- Log parent event for dynamic (currently Token and Response) and related id
Methods
afterDelete()
public
afterDelete(CEvent $event) : mixed
Parameters
- $event : CEvent
afterSave()
public
afterSave(CEvent $event) : mixed
Parameters
- $event : CEvent
beforeDelete()
public
beforeDelete(CModelEvent $event) : mixed
Parameters
- $event : CModelEvent
beforeSave()
public
beforeSave(CModelEvent $event) : mixed
Parameters
- $event : CModelEvent
dispatchPluginModelEvent()
method for dispatching plugin events
public
dispatchPluginModelEvent(string $sEventName[, array<string|int, mixed> $criteria = null ][, array<string|int, mixed> $eventParams = array() ]) : PluginEvent
Parameters
- $sEventName : string
-
event name to dispatch
- $criteria : array<string|int, mixed> = null
-
array containing attributes, conditions and params for the filter query
- $eventParams : array<string|int, mixed> = array()
-
array of params for event
Return values
PluginEvent —the dispatched event
events()
public
events() : mixed
dispatchDynamic()
Log parent event for dynamic (currently Token and Response) and related id
private
dispatchDynamic(string $when, string $what) : PluginEvent
Parameters
- $when : string
- $what : string
Return values
PluginEvent —the dispatched event