public function misc() { $topics = TopicDao::findAll(); $editions = EditionWithJournalInfoService::findAll(); $journals = JournalDao::findAll(); return Response::view('sitemap.misc', compact('topics', 'editions', "journals"))->header('Content-Type', 'application/xml'); }
static function createTopic($topicName) { $topic = new stdClass(); $topic->name = $topicName; $topic->visible = 1; TopicDao::persist($topic); }
static function getTopic($line) { $topicName = substr($line, strlen(self::TOPIC_DELIMITER)); $topic = TopicDao::findByName($topicName); if (!isset($topic)) { TopicService::createTopic($topicName); $topic = TopicDao::findByName($topicName); } return $topic; }
public function index() { $topics = TopicDao::paginate(self::PAGE_SIZE); return view('topic.index')->with(array('topics' => $topics)); }