Class RelationshipsBehavior
CActiveRecordBehavior is the base class for behaviors that can be attached to
CActiveRecord. Compared with CModelBehavior,
CActiveRecordBehavior attaches to more events that are only defined by CActiveRecord.
-
CComponent
-
CBehavior
implements
IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
RelationshipsBehavior
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
afterSave( CEvent $event )
Responds to CActiveRecord::onAfterSave event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner.
Responds to CActiveRecord::onAfterSave event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner.
Parameters
- $event
CEvent $event event parameter
Overrides
CActiveRecordBehavior::afterSave()
|
public
|
#
afterDelete( CEvent $event )
Responds to CActiveRecord::onAfterDelete event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner.
Responds to CActiveRecord::onAfterDelete event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner.
Parameters
- $event
CEvent $event event parameter
Overrides
CActiveRecordBehavior::afterDelete()
|
public
|
|
public
|
|
protected
|
|
Methods inherited from CActiveRecordBehavior
afterFind(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
|
Methods inherited from CModelBehavior
afterConstruct(),
afterValidate(),
beforeValidate()
|
Methods inherited from CBehavior
attach(),
detach(),
getEnabled(),
getOwner(),
setEnabled()
|
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
Magic properties inherited from CActiveRecordBehavior
$owner
|
Magic properties inherited from CBehavior
$enabled
|