public function updateSeasonApplicationHandle(ArrayHash $values) { $app = new SeasonApplication((array) $values); try { $app->setEditor($this->getUser()->getIdentity()); $this->getSeasonApplicationService()->updateSeasonApplication($app); } catch (Exceptions\DataErrorException $ex) { $this->handleDataSave($app->getId(), "default", $ex); } $this->redirect("default"); }
private function applicationEditorTypeHandle(SeasonApplication $app) { if ($app === null) { throw new Exceptions\NullPointerException("Argument SeasonApplication cannot be null", 0); } try { $editor = null; if ($this->getUserService() !== null) { $id = $this->getMixId($app->getEditor()); if ($id !== null) { $editor = $this->getUserService()->getUser($id, false); } } $app->setEditor($editor); } catch (\Exception $ex) { $this->logError($ex->getMessage()); throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious()); } }