Class X2ModelConversionBehavior
Manages conversion between subclasses of X2Model
- CComponent
- CBehavior implements IBehavior
- CModelBehavior
- CActiveRecordBehavior
- X2ModelConversionBehavior
public static
|
|
public
array
|
|
public
array
|
|
public
|
#
attributeNames( mixed $model )
Excludes fields whose values shouldn't be transferred to the target record |
public
boolean
|
|
public
CModel|false
|
|
public
<array
|
|
public
string
|
#
errorSummary( mixed $targetModelClass, mixed $convertMultiple = false )
Renders error summary containing compatibility warnings |
afterDelete(),
afterFind(),
afterSave(),
beforeCount(),
beforeDelete(),
beforeFind(),
beforeSave(),
events()
|
afterConstruct(),
afterValidate(),
beforeValidate()
|
attach(),
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
boolean
|
$deleteConvertedRecord | true |
|
public
string|null
|
$convertedField |
|
#
$convertedField |
public
string|null
|
$conversionDateField |
|
#
$conversionDateField |
public
string|null
|
$convertedToTypeField |
|
#
$convertedToTypeField |
public
string|null
|
$convertedToIdField |
|
#
$convertedToIdField |
public
boolean
|
$conversionFailed | false |
#
$conversionFailed |
public
null| |
$errorModel | null |
#
if conversion fails, this property gets set to the model that was
attempted |
$owner
|
$enabled
|