Class Mage_Catalog_Model_Layer_Filter_Abstract

Description

Layer category filter abstract model

Located in /Catalog/Model/Layer/Filter/Abstract.php (line 34)

Varien_Object
   |
   --Mage_Catalog_Model_Layer_Filter_Abstract
Direct descendents
Class Description
Mage_Catalog_Model_Layer_Filter_Price Layer price filter
Mage_Catalog_Model_Layer_Filter_Category Layer category filter
Mage_Catalog_Model_Layer_Filter_Decimal Catalog Layer Decimal Attribute Filter Model
Mage_Catalog_Model_Layer_Filter_Attribute Layer attribute filter
Variable Summary
array $_items
string $_requestVar
Method Summary
Variables
array $_items (line 48)

Array of filter items

  • access: protected
string $_requestVar (line 41)

Request variable name with filter value

  • access: protected
Methods
apply (line 97)

Apply filter to collection

  • access: public
void apply ( $request,  $filterBlock)
  • Zend_Controller_Request_Abstract $request
  • $filterBlock

Redefined in descendants as:
getAttributeModel (line 235)

Get attribute model associated with filter

  • access: public
getCleanValue (line 87)

Retrieve filter value for Clear All Items filter state

  • access: public
mixed getCleanValue ()
getItems (line 117)

Get all filter items

  • access: public
array getItems ()
getItemsCount (line 107)

Get fiter items count

  • access: public
int getItemsCount ()
getLayer (line 170)

Retrieve layer object

  • access: public
getName (line 249)

Get filter text label

  • access: public
string getName ()

Redefined in descendants as:
getRequestVar (line 67)

Get request variable name which is used for apply filter

  • access: public
string getRequestVar ()
getResetValue (line 77)

Get filter value for reset current filter state

  • access: public
mixed getResetValue ()

Redefined in descendants as:
getStoreId (line 259)

Retrieve current store id scope

  • access: public
int getStoreId ()
getWebsiteId (line 284)

Retrieve Website ID scope

  • access: public
int getWebsiteId ()
setAttributeModel (line 223)

Set attribute model to filter

  • access: public
setRequestVar (line 56)

Set request variable name which is used for apply filter

  • access: public
Mage_Catalog_Model_Layer_Filter_Abstract setRequestVar (string $varName)
  • string $varName
setStoreId (line 274)

Set store id scope

  • access: public
Mage_Catalog_Model_Layer_Filter_Abstract setStoreId (int $storeId)
  • int $storeId
setWebsiteId (line 299)

Set Website ID scope

  • access: public
Mage_Catalog_Model_Layer_Filter_Abstract setWebsiteId (int $websiteId)
  • int $websiteId
_createItem (line 188)

Create filter item object

  • access: protected
Mage_Catalog_Model_Layer_Filter_Item _createItem (string $label, mixed $value, [int $count = 0])
  • string $label
  • mixed $value
  • int $count
_getBaseCollectionSql (line 212)

Get product collection select object with applied filters

  • access: protected
Varien_Db_Select _getBaseCollectionSql ()
_getFilterEntityIds (line 202)

Get all product ids from from collection with applied filters

  • access: protected
array _getFilterEntityIds ()
_getItemsData (line 139)

Get data array for building filter items

result array should have next structure: array( $index => array( 'label' => $label, 'value' => $value, 'count' => $count ) )

  • access: protected
array _getItemsData ()

Redefined in descendants as:
_initItems (line 149)

Initialize filter items

  • access: protected

Documentation generated on Fri, 11 Feb 2011 16:55:20 +0200 by phpDocumentor 1.4.3