public function getSelectedCharacter() { $notices = $this->getNoticeList(); if (isset($notices['selected_character'])) { $characterRepository = new CharacterRepository(TRUE); return $characterRepository->getOneById(intval($notices['selected_character'])); } return NULL; }