public function updateSeasonHandle(ArrayHash $values) { $season = new Season((array) $values); try { $season->setEditor($this->getUser()->getIdentity()); $this->getSeasonService()->updateSeason($season); } catch (Exceptions\DataErrorException $ex) { $this->handleDataSave($season->getId(), "this", $ex); } $this->redirect("default"); }
private function seasonEditorTypeHandle(Season $s) { if ($s === null) { throw new Exceptions\NullPointerException("Argument Season cannot be null"); } try { $editor = null; if ($this->getUserService() !== null) { $id = $this->getMixId($s->getEditor()); if ($id !== null) { $editor = $this->getUserService()->getUser($id, false); } } $s->setEditor($editor); } catch (\Exception $ex) { $this->logError($ex->getMessage()); throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious()); } }