setId($this->formData['id']); $model->setAttr(Ressource::ATTR_STATUS, $this->formData['status']); $result = $this->api->ressource->update($model); if(!$result) { $this->setError($this->api->ressource->getLastResult()->getLastErrorCode()); return false; } return true; } }