/**
  * Construct a new forum index view
  * @param array $categories Array with forum categories and their boards
  * @param string $boardAction URL
  * @param string $topicAction URL
  * @return null
  */
 public function __construct($category, $boardAction, $topicAction)
 {
     parent::__construct(self::TEMPLATE);
     $this->set('category', $category);
     $this->set('boardAction', $boardAction);
     $this->set('topicAction', $topicAction);
 }
Esempio n. 2
0
 /**
  * Construct a new forum index view
  * @param array $categories Array with forum categories and their boards
  * @param string $boardAction URL
  * @param string $topicAction URL
  * @return null
  */
 public function __construct(array $categories, $categoryAction, $boardAction, $topicAction)
 {
     parent::__construct(self::TEMPLATE);
     $this->set('categories', $categories);
     $this->set('categoryAction', $categoryAction);
     $this->set('boardAction', $boardAction);
     $this->set('topicAction', $topicAction);
 }
Esempio n. 3
0
 /**
  * Constructs a new view for a forum board
  * @param integer $pages
  * @param integer $page
  * @param string $pageAction
  * @param array $topics
  * @param string $topicAction
  * @param string $topicAddAction
  * @param string $topicStickyAction
  * @param string $topicDeleteAction
  */
 public function __construct($pages, $page, $pageAction, array $topics, $topicAction, $topicAddAction = null, $topicStickyAction = null, $topicDeleteAction = null)
 {
     parent::__construct(self::TEMPLATE);
     $this->set('pages', $pages);
     $this->set('page', $page);
     $this->set('pageAction', $pageAction);
     $this->set('topics', $topics);
     $this->set('topicAction', $topicAction);
     $this->set('topicAddAction', $topicAddAction);
     $this->set('topicStickyAction', $topicStickyAction);
     $this->set('topicDeleteAction', $topicDeleteAction);
 }