Ejemplo n.º 1
0
 public function getBoard()
 {
     $this->category = PaForumCategory::getPaForumCategory($this->category_id);
     $this->board = $this->category->getBoard();
     return $this->board;
 }
 private function setCategory($category_id, $request_data, $render = true)
 {
     $forums = array();
     $category = PaForumCategory::getPaForumCategory($category_id);
     if ($category) {
         $this->category = $category;
         $category->statistics = $category->getCategoryStatistics();
         if (!empty($category->statistics['forums'])) {
             $forums = $category->statistics['forums'];
         }
         $board = $category->getBoard();
         $this->setupBoard($board);
         $this->user_status = $this->checkUser($request_data);
     }
     if ($render && $this->category) {
         $this->set_inner_template('cnmodule_content_forum_category.php');
         $this->inner_HTML = $this->generate_inner_html(array('page_id' => $this->page_id, 'forums' => $forums, 'category' => $category, 'forums_url' => $this->forums_url, 'theme_url' => $this->theme_url, 'user_status' => $this->user_status, 'message' => $this->message, 'description' => $this->category->get_description(), 'board' => $this->board, 'board_settings' => $this->board_settings));
     }
 }