Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Свойство | Тип | Описание | |
---|---|---|---|
$changedAttributes | mixed | name of changed attributes. Used when saving model |
Метод | Описание | |
---|---|---|
__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 |
Метод | Описание | |
---|---|---|
afterUpdate ( ) | afterUpdate | |
beforeUpdate ( ) | beforeUpdate |
public __construct ( $modelClass ) : EditableBackend | ||
Результат | 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 |
public mixed $attribute | ||
Результат | mixed |
protected mixed $changedAttributes | ||
Результат | mixed |
public mixed $scenario | ||
Результат | mixed |