Class RecordLimitBehavior
Deletes oldest records if count surpasses limit
-
CComponent
-
CBehavior
implements
IBehavior
-
CModelBehavior
-
CActiveRecordBehavior
-
RecordLimitBehavior
Methods summary
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()
|
Methods inherited from CActiveRecordBehavior
afterDelete(),
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()
|
Properties summary
public
integer
|
$limit
|
|
#
$limit max number of records
$limit max number of records
|
public
string
|
$timestampField
|
|
#
$timestampField will be used to find oldest record
$timestampField will be used to find oldest record
|
Magic properties inherited from CActiveRecordBehavior
$owner
|
Magic properties inherited from CBehavior
$enabled
|