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
Afficher le fichier Open project: caciobanu/improved-magento-layered-navigation

Protected Properties

Свойство Type Description
$_cachedResults

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

_construct() protected méthode

Initialize resource model
protected _construct ( )

getAttributeData() protected méthode

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

getOptionId() public méthode

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

getUrlKey() public méthode

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

getUrlValue() public méthode

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

preloadAttributesOptions() public méthode

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
Résultat Catalin_SEO_Model_Resource_Attribute_Urlkey

Property Details

$_cachedResults protected_oe static_oe property

protected static $_cachedResults