PHP Класс Aligent_CacheObserver_Model_Observer

Автор: ModuleCreator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_aNeverCacheBlocks array Blocks that should never be cached
$iCacheLifetime integer Cache lifetime

Открытые методы

Метод Описание
__construct ( ) Sets the cache lifetime from store configuration
customBlockCache ( Varien_Event_Observer $observer ) : self
replaceFormKey ( Varien_Event_Observer $observer ) : self Replace the form key

Защищенные методы

Метод Описание
_generateCategoryCacheKey ( Varien_Event_Observer $observer, string $sKey ) : string Generate a category cache key
_getParamKey ( string $vParam ) : string Creates a Key from the request param. This key is used for creating unique Cache Key, and Cache Tag
_getProductId ( ) : mixed Fetches the current product id from two possible registry keys.
_getReviewToolBarKey ( ) : string This creates a Key for the Review List ToolBar based on params Page:P and Review Limit:limit.

Приватные методы

Метод Описание
_generateProductCacheKey ( Varien_Event_Observer $observer, Mage_Catalog_Model_Product $oProduct, string $reviewKey, string $alias, string $vTemplate ) : string Create separate cached block for each product, viewed by each customer group (e.g. to cache different tax display rules)
_generateProductCacheTags ( Varien_Event_Observer $observer, Mage_Catalog_Model_Product $oProduct ) : array Accommodated grouped products by adding the tag for each associated product.

Описание методов

__construct() публичный Метод

Sets the cache lifetime from store configuration
public __construct ( )

_generateCategoryCacheKey() защищенный Метод

Generate a category cache key
protected _generateCategoryCacheKey ( Varien_Event_Observer $observer, string $sKey ) : string
$observer Varien_Event_Observer
$sKey string
Результат string

_getParamKey() защищенный Метод

Creates a Key from the request param. This key is used for creating unique Cache Key, and Cache Tag
protected _getParamKey ( string $vParam ) : string
$vParam string
Результат string

_getProductId() защищенный Метод

Fetches the current product id from two possible registry keys.
protected _getProductId ( ) : mixed
Результат mixed

_getReviewToolBarKey() защищенный Метод

This creates a Key for the Review List ToolBar based on params Page:P and Review Limit:limit.
protected _getReviewToolBarKey ( ) : string
Результат string

customBlockCache() публичный Метод

public customBlockCache ( Varien_Event_Observer $observer ) : self
$observer Varien_Event_Observer
Результат self

replaceFormKey() публичный Метод

Replace the form key
public replaceFormKey ( Varien_Event_Observer $observer ) : self
$observer Varien_Event_Observer
Результат self

Описание свойств

$_aNeverCacheBlocks защищенное свойство

Blocks that should never be cached
protected array $_aNeverCacheBlocks
Результат array

$iCacheLifetime защищенное свойство

Cache lifetime
protected int $iCacheLifetime
Результат integer