private function get_article()
 {
     if ($this->article === null) {
         $this->article = ArticlesService::get_article('WHERE articles.id=:id', array('id' => $this->get_id_in_module()));
     }
     return $this->article;
 }
 private function get_article(HTTPRequestCustom $request)
 {
     $id = $request->get_getint('id', 0);
     if (!empty($id)) {
         try {
             return ArticlesService::get_article('WHERE articles.id=:id', array('id' => $id));
         } catch (RowNotFoundException $e) {
             $error_controller = PHPBoostErrors::unexisting_page();
             DispatchManager::redirect($error_controller);
         }
     }
 }
 private function get_article()
 {
     if ($this->article === null) {
         $id = AppContext::get_request()->get_getint('id', 0);
         if (!empty($id)) {
             try {
                 $this->article = ArticlesService::get_article('WHERE articles.id=:id', array('id' => $id));
             } catch (RowNotFoundException $e) {
                 $error_controller = PHPBoostErrors::unexisting_page();
                 DispatchManager::redirect($error_controller);
             }
         } else {
             $this->article = new Article();
         }
     }
     return $this->article;
 }
 private function get_article()
 {
     if ($this->article === null) {
         $id = AppContext::get_request()->get_getint('id', 0);
         if (!empty($id)) {
             try {
                 $this->article = ArticlesService::get_article('WHERE articles.id=:id', array('id' => $id));
             } catch (RowNotFoundException $e) {
                 $error_controller = PHPBoostErrors::unexisting_page();
                 DispatchManager::redirect($error_controller);
             }
         } else {
             $this->is_new_article = true;
             $this->article = new Article();
             $this->article->init_default_properties(AppContext::get_request()->get_getint('id_category', Category::ROOT_CATEGORY));
         }
     }
     return $this->article;
 }