_init('clnews/news'); } public function getUrl($category = '') { if ($category) { $url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$category.'/'.$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix(); } else { $url = Mage::getUrl(Mage::helper('clnews')->getRoute()).$this->getUrlKey().Mage::helper('clnews')->getNewsitemUrlSuffix(); } return $url; } /** * Reset all model data * * @return CommerceLab_News_Model_News */ public function reset() { $this->setData(array()); $this->setOrigData(); $this->_attributes = null; return $this; } }