setId($this->formData['id']); $model->setAttr(Account::ATTR_ACCOUNT_STATUS, $this->formData['status']); $result = $this->api->account->update($model); if(!$result) { $this->setError($this->api->account->getError()); return false; } return true; } }