PHP Class Catalin_SEO_Model_CatalogSearch_Layer

NOTICE OF LICENSE This source file is subject to the MIT License (MIT) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: https://opensource.org/licenses/MIT
Inheritance: extends Catalin_SEO_Model_Catalog_Layer
Show file Open project: caciobanu/improved-magento-layered-navigation

Public Methods

Method Description
getProductCollection ( ) : Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection Get current layer product collection
getStateKey ( ) : string Get layer state key
getStateTags ( array $additionalTags = [] ) : array Get default tags for current layer state
prepareProductCollection ( Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection $collection ) : Mage_Catalog_Model_Layer Prepare product collection

Protected Methods

Method Description
_prepareAttribute ( Mage_Eav_Model_Entity_Attribute $attribute ) : Mage_Eav_Model_Entity_Attribute Prepare attribute for use in layered navigation
_prepareAttributeCollection ( Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection $collection ) : Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection Add filters to attribute collection

Method Details

_prepareAttribute() protected method

Prepare attribute for use in layered navigation
protected _prepareAttribute ( Mage_Eav_Model_Entity_Attribute $attribute ) : Mage_Eav_Model_Entity_Attribute
$attribute Mage_Eav_Model_Entity_Attribute
return Mage_Eav_Model_Entity_Attribute

_prepareAttributeCollection() protected method

Add filters to attribute collection
protected _prepareAttributeCollection ( Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection $collection ) : Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection
$collection Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection
return Mage_Catalog_Model_Resource_Eav_Resource_Product_Attribute_Collection

getProductCollection() public method

Get current layer product collection
public getProductCollection ( ) : Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection
return Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection

getStateKey() public method

Get layer state key
public getStateKey ( ) : string
return string

getStateTags() public method

Get default tags for current layer state
public getStateTags ( array $additionalTags = [] ) : array
$additionalTags array
return array

prepareProductCollection() public method

Prepare product collection
public prepareProductCollection ( Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection $collection ) : Mage_Catalog_Model_Layer
$collection Mage_Catalog_Model_Resource_Eav_Resource_Product_Collection
return Mage_Catalog_Model_Layer