Свойство | 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 |
Свойство | Type | Description | |
---|---|---|---|
$changedAttributes | mixed | name of changed attributes. Used when saving model |
Méthode | 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 |
Méthode | Description | |
---|---|---|
afterUpdate ( ) | afterUpdate | |
beforeUpdate ( ) | beforeUpdate |
public __construct ( $modelClass ) : EditableBackend | ||
Résultat | 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 | ||
Résultat | mixed |
protected mixed $changedAttributes | ||
Résultat | mixed |
public mixed $scenario | ||
Résultat | mixed |