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 | scenarion used in model for update | |
$value | new value of attribute |
Property | Type | Description | |
---|---|---|---|
$changedAttributes | mixed | name of changed attributes. Used when saving model |
Method | Description | |
---|---|---|
__construct ( $modelClass ) : TbEditableSaver | ### ._construct() | |
checkErrors ( ) | ### .checkErros() | |
error ( $msg ) | ### .error() | |
onAfterUpdate ( CEvent $event ) | ### .onAfterUpdate() | |
onBeforeUpdate ( CModelEvent $event ) | ### .onBeforeUpdate() | |
setAttribute ( mixed $name, mixed $value ) | ### .setAttribute() | |
update ( ) | ### .update() |
Method | Description | |
---|---|---|
afterUpdate ( ) | ### .afterUpdate() | |
beforeUpdate ( ) | ### .beforeUpdate() |
public __construct ( $modelClass ) : TbEditableSaver | ||
$modelClass | ||
return | TbEditableSaver |
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 |