protected function _populateCategoryArticles() { if ($this->_category_articles === null) { $this->_category_articles = array(); if ($res = TBGArticleCategoriesTable::getTable()->getCategoryArticles($this->getCategoryName())) { while ($row = $res->getNextRow()) { try { $this->_category_articles[$row->get(TBGArticleCategoriesTable::ARTICLE_NAME)] = PublishFactory::articleName($row->get(TBGArticleCategoriesTable::ARTICLE_NAME)); } catch (Exception $e) { } } } } }
public function componentLogin() { $this->selected_tab = isset($this->section) ? $this->section : 'login'; $this->options = $this->getParameterHolder(); try { $this->article = null; $this->article = PublishFactory::articleName('LoginIntro'); } catch (Exception $e) { } if (TBGContext::getRequest()->getParameter('redirect') == true) { $this->mandatory = true; } }