Class CallbackBehavior
Migration behavior to translate basic Cake callbacks to BeCallbackManager events.
When this behavior is attached to a model MyModel
, all enabled behaviors with a name like
MyModelSomethingCallbackBehavior
(where Something
can be replaced with anything you want)
will be automatically attached to MyModel
's events.
You can also attach a callback behavior to all object type using the BEObject
reserved name:
for instance, you might create a BEObjectSomethingCallbackBehavior
to attach callback operations
to every core and plugin object type at once.
If this behavior is attached with configuration key callbackManager
explicitely set to false,
callbacks behaviors will be attached using CakePHP's built in associations.
Otherwise, public callback behaviors' methods will be treated as listeners for corresponding events,
thus allowing finer control on event propagation and details, as well as detachment of
single methods within a behavior.
- ModelBehavior
- CallbackBehavior
Methods summary
private
|
|
private
array
|
|
public
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
Properties summary
private
array
|
$stdConfig
Standard configuration. |
#
array(
'callbackManager' => true,
'_behaviors' => array(),
'_listeners' => array(),
)
|
protected
array
|
$config
Configuration. |
#
array()
|
private
|
$manager
Callback Manager. |
#
null
|
private
array
|
$behaviors
Behaviors list. |
#
null
|