Class ContactsNameBehavior
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
-
ContactsNameBehavior
Methods summary
public
array
|
#
events( )
Declares events and the corresponding event handler methods. If you override
this method, make sure you merge the parent result to the return value.
Declares events and the corresponding event handler methods. If you override
this method, make sure you merge the parent result to the return value.
Returns
array events (array keys) and the corresponding event handler methods (array values).
See
CBehavior::events
Overrides
CActiveRecordBehavior::events()
|
public
|
#
afterFind( CEvent $event )
Sets the name field (full name) on record lookup
Sets the name field (full name) on record lookup
Parameters
- $event
CEvent $event event parameter
Overrides
CActiveRecordBehavior::afterFind()
|
public
|
|
Methods inherited from CActiveRecordBehavior
afterDelete(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave()
|
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
|