Public Member Functions | |
getFilter () | |
getUrl () | |
getRemoveUrl () | |
getName () | |
getValueString () |
Definition at line 34 of file Item.php.
getFilter | ( | ) |
Get filter instance
Definition at line 41 of file Item.php.
00042 { 00043 $filter = $this->getData('filter'); 00044 if (!is_object($filter)) { 00045 Mage::throwException( 00046 Mage::helper('catalog')->__('Filter must be as object. Set correct filter please') 00047 ); 00048 } 00049 return $filter; 00050 }
getName | ( | ) |
getRemoveUrl | ( | ) |
Get url for remove item from filter
Definition at line 71 of file Item.php.
00072 { 00073 $query = array($this->getFilter()->getRequestVar()=>$this->getFilter()->getResetValue()); 00074 $params['_current'] = true; 00075 $params['_use_rewrite'] = true; 00076 $params['_query'] = $query; 00077 return Mage::getUrl('*/*/*', $params); 00078 }
getUrl | ( | ) |
Get filter item url
Definition at line 57 of file Item.php.
00058 { 00059 $query = array( 00060 $this->getFilter()->getRequestVar()=>$this->getValue(), 00061 Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls 00062 ); 00063 return Mage::getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true, '_query'=>$query)); 00064 }
getValueString | ( | ) |