Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • ActionToRecord
  • ContactsNameBehavior
  • ERememberFiltersBehavior
  • FileSystemObjectBehavior
  • MobileLayouts
  • RecordAliases
  • RelationshipsBehavior
  • TopicReplies
  • X2ActiveRecord
  • X2Flow
  • Overview
  • Package
  • Class
  • Tree

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
Extended by CBehavior implements IBehavior
Extended by CModelBehavior
Extended by CActiveRecordBehavior
Extended by ERememberFiltersBehavior
Package: system\db\ar
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/protected/components/ERememberFiltersBehavior.php
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 array
# getGridFilters( )

Returns

array
filters set for this model
public
# setGridFilters( array $filters )

Saves grid filters to session/db

Saves grid filters to session/db

Parameters

$filters
array
$filters attr values indexed by attr name
public
# afterConstruct( CEvent $event )

Set model attributes (if scenario is 'search') and clear filters (if clearFilters param is set).

Set model attributes (if scenario is 'search') and clear filters (if clearFilters param is set).

Parameters

$event
CEvent
$event event parameter

Overrides

CModelBehavior::afterConstruct()
public owner
# unsetAllFilters( )

Method is called when we need to unset the filters

Method is called when we need to unset the filters

Returns

owner
public
# getId( )
Methods inherited from CActiveRecordBehavior
afterDelete(), afterFind(), afterSave(), beforeCount(), beforeDelete(), beforeFind(), beforeSave(), events()
Methods inherited from CModelBehavior
afterValidate(), beforeValidate()
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()
Properties summary
public array $defaults array()
#

Feature disabled for simplicity's sake. Property kept around to support legacy code.

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

When this flag is true, the default values will be used also when the user clears the filters

Magic properties inherited from CActiveRecordBehavior
$owner
Magic properties inherited from CBehavior
$enabled
X2CRM Documentation API documentation generated by ApiGen 2.8.0