PHP Class Catalin_SEO_Model_Resource_Indexer_Attribute

NOTICE OF LICENSE This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php
Inheritance: extends Mage_Index_Model_Resource_Abstract
Mostra file Open project: caciobanu/improved-magento-layered-navigation

Protected Properties

Property Type Description
$helper Catalin_SEO_Helper_Data
$storesIds array

Public Methods

Method Description
catalogEavAttributeSave ( Mage_Index_Model_Event $event ) : Catalin_SEO_Model_Resource_Indexer_Attribute Reindex attribute options on attribute save event
reindexAll ( ) : Catalin_SEO_Model_Resource_Indexer_Attribute Reindex all
reindexSeoUrlKeys ( integer | null $attributeId = null ) : Catalin_SEO_Model_Resource_Indexer_Attribute Generate SEO values for catalog product attributes options

Protected Methods

Method Description
_construct ( ) Initialize resource model
getAllStoresIds ( ) : array Retrieve all stores ids
getAttributes ( integer | null $attributeId = null ) : Mage_Eav_Model_Resource_Entity_Attribute_Collection Retrieve filterable product attributes with frontend input type 'select' and 'multiselect'
getHelper ( ) : Catalin_SEO_Helper_Data Retrieve helper object
getInsertValues ( Mage_Catalog_Model_Resource_Eav_Attribute $attribute ) : array Retrieve data to be inserted
reindexAttribute ( Mage_Catalog_Model_Resource_Eav_Attribute $attribute ) Reindex attribute
urlKeyExists ( integer $attributeId, string $urlKey ) : boolean

Method Details

_construct() protected method

Initialize resource model
protected _construct ( )

catalogEavAttributeSave() public method

Reindex attribute options on attribute save event
public catalogEavAttributeSave ( Mage_Index_Model_Event $event ) : Catalin_SEO_Model_Resource_Indexer_Attribute
$event Mage_Index_Model_Event
return Catalin_SEO_Model_Resource_Indexer_Attribute

getAllStoresIds() protected method

Retrieve all stores ids
protected getAllStoresIds ( ) : array
return array

getAttributes() protected method

Retrieve filterable product attributes with frontend input type 'select' and 'multiselect'
protected getAttributes ( integer | null $attributeId = null ) : Mage_Eav_Model_Resource_Entity_Attribute_Collection
$attributeId integer | null
return Mage_Eav_Model_Resource_Entity_Attribute_Collection

getHelper() protected method

Retrieve helper object
protected getHelper ( ) : Catalin_SEO_Helper_Data
return Catalin_SEO_Helper_Data

getInsertValues() protected method

Retrieve data to be inserted
protected getInsertValues ( Mage_Catalog_Model_Resource_Eav_Attribute $attribute ) : array
$attribute Mage_Catalog_Model_Resource_Eav_Attribute
return array

reindexAll() public method

Reindex all
public reindexAll ( ) : Catalin_SEO_Model_Resource_Indexer_Attribute
return Catalin_SEO_Model_Resource_Indexer_Attribute

reindexAttribute() protected method

Reindex attribute
protected reindexAttribute ( Mage_Catalog_Model_Resource_Eav_Attribute $attribute )
$attribute Mage_Catalog_Model_Resource_Eav_Attribute

reindexSeoUrlKeys() public method

Generate SEO values for catalog product attributes options
public reindexSeoUrlKeys ( integer | null $attributeId = null ) : Catalin_SEO_Model_Resource_Indexer_Attribute
$attributeId integer | null - transmit this to limit processing to one specific attribute
return Catalin_SEO_Model_Resource_Indexer_Attribute

urlKeyExists() protected method

protected urlKeyExists ( integer $attributeId, string $urlKey ) : boolean
$attributeId integer
$urlKey string
return boolean

Property Details

$helper protected_oe property

protected Catalin_SEO_Helper_Data $helper
return Catalin_SEO_Helper_Data

$storesIds protected_oe property

protected array $storesIds
return array