프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$changedAttributes | mixed | name of changed attributes. Used when saving model |
메소드 | 설명 | |
---|---|---|
__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() |
메소드 | 설명 | |
---|---|---|
afterUpdate ( ) | ### .afterUpdate() | |
beforeUpdate ( ) | ### .beforeUpdate() |
public __construct ( $modelClass ) : TbEditableSaver | ||
$modelClass | ||
리턴 | 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 | ||
리턴 | mixed |