1 | <?php |
||
12 | class Update extends Action |
||
13 | { |
||
14 | use LoadFileTrait; |
||
15 | |||
16 | /** |
||
17 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
18 | */ |
||
19 | public $scenario = Model::SCENARIO_DEFAULT; |
||
20 | |||
21 | /** |
||
22 | * @var string[] that defines which columns will be recibe files |
||
23 | */ |
||
24 | public $fileAttributes = []; |
||
25 | |||
26 | /** |
||
27 | * Updates an existing model. |
||
28 | * @param mixed $id the primary key of the model. |
||
29 | * @return \yii\db\ActiveRecordInterface the model being updated |
||
30 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
31 | */ |
||
32 | public function run($id) |
||
49 | } |
||
50 |