/** * Initialize filter model object * * @return Mage_Catalog_Block_Layer_Filter_Abstract */ public function init() { $attribute = $this->getAttributeModel(); $registryKey = $this->_filterModelName . ($attribute ? '_' . $attribute->getAttributeCode() : ''); $filter = Mage::registry($registryKey); if ($filter) { $this->_filter = $filter; $this->_prepareFilter(); } else { parent::_initFilter(); Mage::register($registryKey, $this->_filter); } return $this; }