| 1 | <?php |
||
| 8 | class ProfileUpdate extends \yii\rest\Action |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
| 12 | */ |
||
| 13 | public $scenario = Model::SCENARIO_DEFAULT; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @inheritdoc |
||
| 17 | */ |
||
| 18 | public function init() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Updates the information of the logged user. |
||
| 24 | * |
||
| 25 | * @return \yii\db\ActiveRecordInterface |
||
| 26 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
| 27 | */ |
||
| 28 | public function run() |
||
| 42 | } |
||
| 43 |