Property | Type | Description | |
---|---|---|---|
$attribute | mixed | name of attribute to be updated | |
$errorHttpCode | http status code returned in case of error | ||
$model | CActiveRecord | model instance | |
$modelClass | mixed | name of model | |
$primaryKey | mixed | primaryKey value | |
$scenario | mixed | scenario used in model for update. Can be taken from scenario POST param | |
$value | new value of attribute |
Property | Type | Description | |
---|---|---|---|
$changedAttributes | mixed | name of changed attributes. Used when saving model |
Method | Description | |
---|---|---|
__construct ( $modelClass ) : EditableBackend | Constructor | |
checkErrors ( ) | errors as CHttpException | |
error ( $msg ) | errors as CHttpException | |
onAfterUpdate ( CEvent $event ) | This event is raised after the update is performed. | |
onBeforeUpdate ( CModelEvent $event ) | This event is raised before the update is performed. | |
setAttribute ( mixed $name, mixed $value ) | setting new value of attribute. | |
update ( ) | main function called to update column in database |
Method | Description | |
---|---|---|
afterUpdate ( ) | afterUpdate | |
beforeUpdate ( ) | beforeUpdate |
public __construct ( $modelClass ) : EditableBackend | ||
return | EditableBackend |
public onAfterUpdate ( CEvent $event ) | ||
$event | CEvent | the event parameter |
public onBeforeUpdate ( CModelEvent $event ) | ||
$event | CModelEvent | the event parameter |
public setAttribute ( mixed $name, mixed $value ) | ||
$name | mixed | |
$value | mixed |
protected mixed $changedAttributes | ||
return | mixed |
public mixed $scenario | ||
return | mixed |