Class ERememberFiltersBehavior
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
- ERememberFiltersBehavior
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/protected/components/ERememberFiltersBehavior.php
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
|
public
array
|
|
public
|
|
public
|
#
afterConstruct( CEvent $event )
Set model attributes (if scenario is 'search') and clear filters (if clearFilters param is set). |
public
owner
|
|
public
|
afterDelete(),
afterFind(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
|
afterValidate(),
beforeValidate()
|
detach(),
getEnabled(),
getOwner(),
setEnabled()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
array
|
$defaults | array() |
#
Feature disabled for simplicity's sake. Property kept around to support legacy code. |
public
boolean
|
$defaultStickOnClear | false |
#
When this flag is true, the default values will be used also when the user clears the filters |
$owner
|
$enabled
|