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