/** * * @return Aitoc_Aitsys_Model_Notification_News */ public function getNews() { if (!$this->_news) { $this->_news = Mage::getModel('aitsys/notification_news'); $this->_news->loadData(); } return $this->_news->getNews(); }
public function performPreDispatch(Varien_Event_Observer $observer) { $news = new Aitoc_Aitsys_Model_Notification_News(); /* @var $news Aitoc_Aitsys_Model_Notification_News */ $news->loadData(); $important = new Aitoc_Aitsys_Model_Notification_Important(); /* @var $important Aitoc_Aitsys_Model_Notification_Important */ $important->loadData(); }