PHP Class Catalin_SEO_Model_Resource_Attribute_Urlkey

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_Core_Model_Resource_Db_Abstract
Show file Open project: caciobanu/improved-magento-layered-navigation

Protected Properties

Property Type Description
$_cachedResults

Public Methods

Method Description
getOptionId ( integer $attributeId, string $urlValue, integer $storeId = null ) : integer | string Retrieve option_id for specific url_value
getUrlKey ( string $attributeCode, integer $storeId = null ) : string Retrieve urk_key for specific attribute code
getUrlValue ( integer $attributeId, integer $optionId, integer $storeId = null ) : integer | string Retrieve url_value for specific option
preloadAttributesOptions ( Mage_Catalog_Model_Resource_Product_Attribute_Collection $collection, $storeId = null ) : Catalin_SEO_Model_Resource_Attribute_Urlkey Load attributes options from the database

Protected Methods

Method Description
_construct ( ) Initialize resource model
getAttributeData ( integer $storeId, integer | string $whereValue, string $whereField = 'attribute_id' ) : array Retrieve attribute data

Method Details

_construct() protected method

Initialize resource model
protected _construct ( )

getAttributeData() protected method

Retrieve attribute data
protected getAttributeData ( integer $storeId, integer | string $whereValue, string $whereField = 'attribute_id' ) : array
$storeId integer
$whereValue integer | string
$whereField string
return array

getOptionId() public method

Retrieve option_id for specific url_value
public getOptionId ( integer $attributeId, string $urlValue, integer $storeId = null ) : integer | string
$attributeId integer
$urlValue string
$storeId integer
return integer | string

getUrlKey() public method

Retrieve urk_key for specific attribute code
public getUrlKey ( string $attributeCode, integer $storeId = null ) : string
$attributeCode string
$storeId integer
return string

getUrlValue() public method

Retrieve url_value for specific option
public getUrlValue ( integer $attributeId, integer $optionId, integer $storeId = null ) : integer | string
$attributeId integer
$optionId integer
$storeId integer
return integer | string

preloadAttributesOptions() public method

Load attributes options from the database
public preloadAttributesOptions ( Mage_Catalog_Model_Resource_Product_Attribute_Collection $collection, $storeId = null ) : Catalin_SEO_Model_Resource_Attribute_Urlkey
$collection Mage_Catalog_Model_Resource_Product_Attribute_Collection
return Catalin_SEO_Model_Resource_Attribute_Urlkey

Property Details

$_cachedResults protected static property

protected static $_cachedResults