formData['id']) { $this->setError('Ressource Id name can not be found.'); return false; } return parent::isValid(); // TODO: Change the autogenerated stub } /** * @return bool|mixed */ public function process() { $ressource = new Ressource(); $ressource->setId($this->formData['id']); $ressource->setPassword($this->formData['password']); $result = $this->api->ressource->setPassword($ressource); if(!$result) { $this->setError($this->api->ressource->getLastResult()->getLastErrorCode()); return false; } return true; } }