Public Member Functions | |
__construct () | |
init () | |
getName () | |
getItems () | |
getItemsCount () | |
getHtml () | |
Protected Member Functions | |
_initFilter () | |
_prepareFilter () | |
Protected Attributes | |
$_filter | |
$_filterModelName |
Definition at line 34 of file Abstract.php.
__construct | ( | ) |
Initialize filter template
Reimplemented from Varien_Object.
Reimplemented in Mage_Catalog_Block_Layer_Filter_Attribute, Mage_Catalog_Block_Layer_Filter_Category, and Mage_Catalog_Block_Layer_Filter_Price.
Definition at line 54 of file Abstract.php.
00055 { 00056 parent::__construct(); 00057 $this->setTemplate('catalog/layer/filter.phtml'); 00058 }
_initFilter | ( | ) | [protected] |
Init filter model object
Definition at line 76 of file Abstract.php.
00077 { 00078 if (!$this->_filterModelName) { 00079 Mage::throwException(Mage::helper('catalog')->__('Filter model name must be declared')); 00080 } 00081 $this->_filter = Mage::getModel($this->_filterModelName) 00082 ->setLayer($this->getLayer()); 00083 $this->_prepareFilter(); 00084 00085 $this->_filter->apply($this->getRequest(), $this); 00086 return $this; 00087 }
_prepareFilter | ( | ) | [protected] |
Prepare filter process
Reimplemented in Mage_Catalog_Block_Layer_Filter_Attribute, and Mage_Catalog_Block_Layer_Filter_Price.
Definition at line 94 of file Abstract.php.
getHtml | ( | ) |
Retrieve block html
Definition at line 134 of file Abstract.php.
00135 { 00136 return parent::_toHtml(); 00137 }
getItems | ( | ) |
getItemsCount | ( | ) |
getName | ( | ) |
Retrieve name of the filter block
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 104 of file Abstract.php.
init | ( | ) |
Initialize filter model object
Definition at line 65 of file Abstract.php.
00066 { 00067 $this->_initFilter(); 00068 return $this; 00069 }
$_filter [protected] |
Definition at line 41 of file Abstract.php.
$_filterModelName [protected] |
Definition at line 48 of file Abstract.php.