Mage_Catalog_Model_Layer_State Class Reference

Inheritance diagram for Mage_Catalog_Model_Layer_State:

Varien_Object

List of all members.

Public Member Functions

 addFilter ($filter)
 setFilters ($filters)
 getFilters ()


Detailed Description

Definition at line 34 of file State.php.


Member Function Documentation

addFilter ( filter  ) 

Add filter item to layer state

Parameters:
Mage_Catalog_Model_Layer_Filter_Item $filter
Returns:
Mage_Catalog_Model_Layer_State

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 (  ) 

Get applied to layer filter items

Returns:
array

Definition at line 70 of file State.php.

00071     {
00072         $filters = $this->getData('filters');
00073         if (is_null($filters)) {
00074             $filters = array();
00075             $this->setData('filters', $filters);
00076         }
00077         return $filters;
00078     }

setFilters ( filters  ) 

Set layer state filter items

Parameters:
array $filters
Returns:
Mage_Catalog_Model_Layer_State

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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:39 2009 for Magento by  doxygen 1.5.8