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');
 }
Beispiel #2
0
 static function createTopic($topicName)
 {
     $topic = new stdClass();
     $topic->name = $topicName;
     $topic->visible = 1;
     TopicDao::persist($topic);
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public function index()
 {
     $topics = TopicDao::paginate(self::PAGE_SIZE);
     return view('topic.index')->with(array('topics' => $topics));
 }