/** * @return Aitoc_Aitsys_Model_News_Recent */ public function getNews() { if (!$this->_news) { $this->_news = Mage::getModel('aitsys/news_recent'); $this->_news->loadData(); } return $this->_news->getNews(); }
/** * Update news from www.aitoc.com */ public function updateNews() { $news = new Aitoc_Aitsys_Model_News_Recent(); $news->loadData(); $important = new Aitoc_Aitsys_Model_News_Important(); $important->loadData(); }