Public Member Functions | |
addFilter ($filter) | |
setFilters ($filters) | |
getFilters () |
Definition at line 34 of file State.php.
addFilter | ( | $ | filter | ) |
Add filter item to layer state
Mage_Catalog_Model_Layer_Filter_Item | $filter |
Definition at line 42 of file State.php.
00043 { 00044 $filters = $this->getFilters(); 00045 $filters[] = $filter; 00046 $this->setFilters($filters); 00047 return $this; 00048 }
getFilters | ( | ) |
setFilters | ( | $ | filters | ) |
Set layer state filter items
array | $filters |
Definition at line 56 of file State.php.
00057 { 00058 if (!is_array($filters)) { 00059 Mage::throwException(Mage::helper('catalog')->__('Filters must be as array')); 00060 } 00061 $this->setData('filters', $filters); 00062 return $this; 00063 }