Class CBehavior
CBehavior is a convenient base class for behavior classes.
- CComponent
- CBehavior implements IBehavior
Direct known subclasses
ApplicationConfigBehavior, CConsoleCommandBehavior, LeadRoutingBehavior, QuickCRUDBehavior, ResponseBehavior, ServiceRoutingBehavior, SmartDataProviderBehavior, X2AddressBehavior, X2BaseListViewBehavior, X2ControllerBehavior, X2GridViewSortableWidgetsBehavior, X2Settings, CModelBehavior, X2SmartSearchModelBehavior, X2StaticFieldsBehavior, X2TranslationBehavior, X2WidgetBehavior, CommonControllerBehavior, CommonFieldsBehavior, CommonSiteControllerBehavior, ControllerPermissionsBehavior, EmailDeliveryBehavior, ImportExportBehavior, InlineEmailModelBehaviorIndirect known subclasses
ActionsQuickCreateRelationshipBehavior, AssociatedMediaBehavior, FileSystemObjectBehavior, GridViewDbSettingsBehavior, GridViewSessionSettingsBehavior, JSONEmbeddedModelFieldsBehavior, JSONFieldsBehavior, JSONFieldsDefaultValuesBehavior, ModelPermissionsBehavior, NormalizedJSONFieldsBehavior, QuickCreateRelationshipBehavior, RecordLimitBehavior, CActiveRecordBehavior, RelationshipsBehavior, SearchIndexBehavior, TagBehavior, TransformedFieldStorageBehavior, UpdaterBehavior, WorkflowBehavior, X2ActiveRecordBehavior, X2ChangeLogBehavior, X2ControllerPermissionsBehavior, X2DuplicateBehavior, CampaignMailingBehavior, X2FlowTriggerBehavior, X2LinkableBehavior, X2MergeableBehavior, X2MobileControllerBehavior, X2MobileProfileControllerBehavior, X2MobileQuotesControllerBehavior, X2MobileSiteControllerBehavior, X2MobileTopicsControllerBehavior, X2ModelConversionBehavior, X2PermissionsBehavior, ContactsNameBehavior, X2TimestampBehavior, CSaveRelationsBehavior, CTimestampBehavior, EncryptedFieldsBehavior, ERememberFiltersBehavior, FileFieldBehaviorCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/base/CBehavior.php
public
array
|
#
events( )
Declares events and the corresponding event handler methods. The events are defined by the owner component, while the handler methods by the behavior class. The handlers will be attached to the corresponding events when the behavior is attached to the owner component; and they will be detached from the events when the behavior is detached from the component. Make sure you've declared handler method as public. |
public
|
#
attach(
Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
|
public
|
#
detach(
Detaches the behavior object from the component. The default implementation
will unset the owner property and detach event handlers declared in
|
public
|
|
public
boolean
|
|
public
|
public
|
$owner |
#
The owner component that this behavior is attached to. |
public
boolean
|
$enabled |
#
Whether this behavior is enabled. |