Class X2TimestampBehavior
X2TimestampBehavior class file.
-
CComponent
-
CBehavior
implements
IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
X2TimestampBehavior
Methods summary
public
|
#
attach( CComponent $owner )
Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
CActiveRecordBehavior::events() . This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.
Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
CActiveRecordBehavior::events() . This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.
Parameters
- $owner
CComponent $owner the component that this behavior is to be attached to.
Overrides
CBehavior::attach()
|
public
|
#
afterFind( CEvent $event )
Responds to CActiveRecord::onAfterFind event. Override this method
and make it public if you want to handle the corresponding event of the CBehavior::owner owner.
Responds to CActiveRecord::onAfterFind 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::afterFind()
|
public
|
#
beforeValidate( CModelEvent $event )
Responds to CModel::onBeforeValidate event. Sets the values of the
creation or modified attributes as configured. Does not set the value if a value
has already been set manually (i.e., the current value != the original value, or
the new value is null)
Responds to CModel::onBeforeValidate event. Sets the values of the
creation or modified attributes as configured. Does not set the value if a value
has already been set manually (i.e., the current value != the original value, or
the new value is null)
Parameters
- $event
CModelEvent $event event parameter
Overrides
CModelBehavior::beforeValidate()
|
public
|
#
updateLastActivity( )
Manually sets the lastActivity attribute
Manually sets the lastActivity attribute
|
Methods inherited from CActiveRecordBehavior
afterDelete(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
|
Methods inherited from CModelBehavior
afterConstruct(),
afterValidate()
|
Methods inherited from CBehavior
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
|