Class CActiveRecordBehavior
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
Direct known subclasses
ContactsNameBehavior, CSaveRelationsBehavior, X2ActiveRecordBehavior, X2ChangeLogBehavior, X2DuplicateBehavior, X2FlowTriggerBehavior, X2LinkableBehavior, X2MergeableBehavior, X2ModelConversionBehavior, X2TimestampBehavior, CTimestampBehavior, ERememberFiltersBehavior, FileSystemObjectBehavior, ModelPermissionsBehavior, RecordLimitBehavior, RelationshipsBehavior, TransformedFieldStorageBehavior, WorkflowBehaviorIndirect known subclasses
AssociatedMediaBehavior, EncryptedFieldsBehavior, FileFieldBehavior, JSONEmbeddedModelFieldsBehavior, JSONFieldsBehavior, JSONFieldsDefaultValuesBehavior, NormalizedJSONFieldsBehavior, TagBehavior, X2PermissionsBehaviorCopyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Located at x2engine/framework/db/ar/CActiveRecordBehavior.php
public
array
|
|
protected
|
#
beforeSave(
Responds to |
protected
|
#
afterSave(
Responds to |
protected
|
#
beforeDelete(
Responds to |
protected
|
#
afterDelete(
Responds to |
protected
|
#
beforeFind(
Responds to |
protected
|
#
afterFind(
Responds to |
protected
|
#
beforeCount(
Responds to |
afterConstruct(),
afterValidate(),
beforeValidate()
|
attach(),
detach(),
getEnabled(),
getOwner(),
setEnabled()
|
public
|
$owner |
#
The owner AR that this behavior is attached to. |
$enabled
|