/** 
  * This function is typically called to initialize underlying model of filter and apply it to current 
  * product set if needed. Here we leave it as is except that we assign template file here not in constructor,
  * not how standard Magento does.
  * @see Mage_Catalog_Block_Layer_Filter_Abstract::init()
  */
 public function init()
 {
     /* @var $helper Mana_Filters_Helper_Data */
     $helper = Mage::helper(strtolower('Mana_Filters'));
     $this->setTemplate((string) $this->getDisplayOptions()->template);
     $this->_filterModelName = $helper->getFilterTypeName('model', $this->getFilterOptions());
     return parent::init();
 }
示例#2
0
 /** 
  * This function is typically called to initialize underlying model of filter and apply it to current 
  * product set if needed. Here we leave it as is except that we assign template file here not in constructor,
  * not how standard Magento does.
  * @see Mage_Catalog_Block_Layer_Filter_Abstract::init()
  */
 public function init()
 {
     $this->setTemplate((string) $this->getDisplayOptions()->template);
     $this->_filterModelName = (string) $this->getDisplayOptions()->model;
     return parent::init();
 }