00001 <?php 00002 class Mage_Rss_Block_Abstract extends Mage_Core_Block_Template 00003 { 00004 protected function _getStoreId() 00005 { 00006 //store id is store view id 00007 $storeId = (int) $this->getRequest()->getParam('store_id'); 00008 if($storeId == null) { 00009 $storeId = Mage::app()->getStore()->getId(); 00010 } 00011 return $storeId; 00012 } 00013 00014 protected function _getCustomerGroupId() 00015 { 00016 //customer group id 00017 $custGroupID = (int) $this->getRequest()->getParam('cid'); 00018 if($custGroupID == null) { 00019 $custGroupID = Mage::getSingleton('customer/session')->getCustomerGroupId(); 00020 } 00021 return $custGroupID; 00022 } 00023 }