Class Mage_Catalog_Model_Layer

Description

Catalog view layer model

Located in /Catalog/Model/Layer.php (line 35)

Varien_Object
   |
   --Mage_Catalog_Model_Layer
Direct descendents
Class Description
Mage_CatalogSearch_Model_Layer Magento
Variable Summary
Method Summary
Variables
array $_productCollections = array() (line 42)

Product collections array

  • access: protected
string $_stateKey = null (line 49)

Key which can be used for load/save aggregation data

  • access: protected
Methods
apply (line 140)

Apply layer

Method is colling after apply all filters, can be used for prepare some index data before getting information about existing intexes

  • access: public
getAggregator (line 56)

Get data aggregation object

  • access: public
getCurrentCategory (line 160)

Retrieve current category model If no category found in registry, the root will be taken

  • access: public
Mage_Catalog_Model_Category getCurrentCategory ()
getCurrentStore (line 206)

Retrieve current store model

  • access: public
Mage_Core_Model_Store getCurrentStore ()
getFilterableAttributes (line 216)

Get collection of all filterable attributes for layer products set

  • access: public
Mage_Catalog_Model_Resource_Eav_Mysql4_Attribute_Collection getFilterableAttributes ()
getProductCollection (line 97)

Retrieve current layer product collection

  • access: public

Redefined in descendants as:
getState (line 269)

Retrieve layer state object

  • access: public
getStateKey (line 66)

Get layer state key

  • access: public
string getStateKey ()

Redefined in descendants as:
getStateTags (line 83)

Get default tags for current layer state

  • access: public
array getStateTags ([ $additionalTags = array()])
  • array $additionalTags

Redefined in descendants as:
prepareProductCollection (line 116)

Initialize product collection

  • access: public

Redefined in descendants as:
setCurrentCategory (line 182)

Change current category object

  • access: public
Mage_Catalog_Model_Layer setCurrentCategory (mixed $category)
  • mixed $category
_getSetIds (line 287)

Get attribute sets identifiers of current product set

  • access: protected
array _getSetIds ()
_prepareAttribute (line 246)

Prepare attribute for use in layered navigation

  • access: protected

Redefined in descendants as:
_prepareAttributeCollection (line 258)

Add filters to attribute collection

  • access: protected
Mage_Catalog_Model_Resource_Eav_Mysql4_Attribute_Collection _prepareAttributeCollection (Mage_Catalog_Model_Resource_Eav_Mysql4_Attribute_Collection $collection)
  • Mage_Catalog_Model_Resource_Eav_Mysql4_Attribute_Collection $collection

Redefined in descendants as:

Documentation generated on Fri, 11 Feb 2011 17:07:39 +0200 by phpDocumentor 1.4.3