getStore()->getId(); $collection = $this->getCatalogModel()->getCollection(); $collection->addFilter('is_active', 1); $collection->addStoreFilter($storeId); $collection->addOrder('position', 'ASC'); return $collection; } public function getCatalog() { return $this->getCatalogCollection(); } protected function getItemModel() { return Mage::getModel('megamenu/item'); } protected function getItemCollection() { $storeId = Mage::app()->getStore()->getId(); $collection = $this->getItemModel()->getCollection(); $collection->addFilter('is_active', 1); $collection->addStoreFilter($storeId); $collection->addOrder('position', 'ASC'); return $collection; } public function getItems() { return $this->getItemCollection(); } } ?>