Public Member Functions | |
__construct () | |
getActiveFilters () | |
getClearUrl () | |
getLayer () |
Definition at line 34 of file State.php.
__construct | ( | ) |
Initialize Layer State template
Reimplemented from Varien_Object.
Definition at line 40 of file State.php.
00041 { 00042 parent::__construct(); 00043 $this->setTemplate('catalog/layer/state.phtml'); 00044 }
getActiveFilters | ( | ) |
getClearUrl | ( | ) |
Retrieve Clear Filters URL
Definition at line 65 of file State.php.
00066 { 00067 $filterState = array(); 00068 foreach ($this->getActiveFilters() as $item) { 00069 $filterState[$item->getFilter()->getRequestVar()] = $item->getFilter()->getResetValue(); 00070 } 00071 $params['_current'] = true; 00072 $params['_use_rewrite'] = true; 00073 $params['_query'] = $filterState; 00074 return Mage::getUrl('*/*/*', $params); 00075 }
getLayer | ( | ) |
Retrieve Layer object
Definition at line 82 of file State.php.
00083 { 00084 if (!$this->hasData('layer')) { 00085 $this->setLayer(Mage::getSingleton('catalog/layer')); 00086 } 00087 return $this->_getData('layer'); 00088 }