Class CModelBehavior
CModelBehavior is a base class for behaviors that are attached to a model
component. The model should extend from CModel
or its child classes.
- CComponent
- CBehavior implements IBehavior
- CModelBehavior
Indirect known subclasses
AssociatedMediaBehavior, ContactsNameBehavior, JSONFieldsDefaultValuesBehavior, ModelPermissionsBehavior, NormalizedJSONFieldsBehavior, RecordLimitBehavior, RelationshipsBehavior, TagBehavior, TransformedFieldStorageBehavior, WorkflowBehavior, X2ActiveRecordBehavior, X2ChangeLogBehavior, CSaveRelationsBehavior, X2DuplicateBehavior, X2FlowTriggerBehavior, X2LinkableBehavior, X2MergeableBehavior, X2ModelConversionBehavior, X2PermissionsBehavior, X2TimestampBehavior, CTimestampBehavior, EncryptedFieldsBehavior, ERememberFiltersBehavior, FileFieldBehavior, FileSystemObjectBehavior, JSONEmbeddedModelFieldsBehavior, JSONFieldsBehavior
Package: system\base
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/base/CModelBehavior.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/base/CModelBehavior.php
public
array
|
|
protected
|
#
afterConstruct(
Responds to |
protected
|
#
beforeValidate(
Responds to |
protected
|
#
afterValidate(
Responds to |
attach(),
detach(),
getEnabled(),
getOwner(),
setEnabled()
|
public
|
$owner |
#
The owner model that this behavior is attached to. |
$enabled
|