Method | Description | |
---|---|---|
addMessagesBlockRewrite ( Varien_Object $eventObject ) : null | Add the core/messages block rewrite if the flash message fix is enabled | |
checkCacheFlag ( Varien_Object $eventObject ) : null | Allows disabling page-caching by setting the cache flag on a controller | |
checkRedirectUrl ( Varien_Object $eventObject ) : null | On controller redirects, check the target URL and set to home page if it would otherwise go to a getBlock URL | |
hookToAddToCartAfter ( $observer ) | ||
hookToAddToCartBefore ( $observer ) | ||
hookToAddToWishlistBefore ( $observer ) : Nexcessnet_Turpentine_Model_Observer_Esi | Set the form key on the add to wishlist request | |
hookToControllerActionPostDispatch ( $observer ) | ||
hookToControllerActionPreDispatch ( $observer ) | ||
injectEsi ( Varien_Object $eventObject ) : null | Encode block data in URL then replace with ESI template | |
loadCacheClearEvents ( Varien_Object $eventObject ) : null | Load the cache clear events from stored config | |
removeCustomerGroupCookie ( Varien_Object $eventObject ) : null | Destroy the cookie with the customer group when customer logs out | |
replaceFormKeyPlaceholder ( Varien_Object $eventObject ) : null | Replace the form key placeholder with the ESI include fragment | |
setCustomerGroupCookie ( Varien_Object $eventObject ) : null | Set a cookie with the customer group id when customer logs in | |
setFlagHeaders ( Varien_Object $eventObject ) : null | Check the ESI flag and set the ESI header if needed | |
setReplaceFormKeyFlag ( Varien_Object $eventObject ) : null | Check the magento version and runtime env and set the replace_form_key flag if needed |
Method | Description | |
---|---|---|
_checkIsEsiUrl ( string $url ) : boolean | Check if a URL *is* for the /turpentine/esi/getBlock/ action | |
_checkIsNotEsiUrl ( string $url ) : boolean | Check if a URL *is not* for the /turpentine/esi/getBlock/ action | |
_fixupUencUrl ( string $uencUrl ) : string | Fix a URL to ensure it uses Magento's base URL instead of the backend URL | |
_getBlockLayoutHandles ( Mage_Core_Block_Template $block ) : array | Get the active layout handles for this block and any child blocks | |
_getComplexRegistryData ( array $valueOptions, mixed $value ) : array | Get the complex registry entry data | |
_getDefaultEsiOptions ( $options ) : array | Get the default ESI options | |
_getEsiData ( Mage_Core_Block_Template $blockObject, array $esiOptions ) : Varien_Object | Generate ESI data to be encoded in URL |
protected _checkIsEsiUrl ( string $url ) : boolean | ||
$url | string | |
return | boolean |
protected _checkIsNotEsiUrl ( string $url ) : boolean | ||
$url | string | |
return | boolean |
protected _fixupUencUrl ( string $uencUrl ) : string | ||
$uencUrl | string | |
return | string |
protected _getBlockLayoutHandles ( Mage_Core_Block_Template $block ) : array | ||
$block | Mage_Core_Block_Template | |
return | array |
protected _getDefaultEsiOptions ( $options ) : array | ||
return | array |
protected _getEsiData ( Mage_Core_Block_Template $blockObject, array $esiOptions ) : Varien_Object | ||
$blockObject | Mage_Core_Block_Template | |
$esiOptions | array | |
return | Varien_Object |
public addMessagesBlockRewrite ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public checkCacheFlag ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public checkRedirectUrl ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public hookToAddToWishlistBefore ( $observer ) : Nexcessnet_Turpentine_Model_Observer_Esi | ||
$observer | ||
return | Nexcessnet_Turpentine_Model_Observer_Esi |
public hookToControllerActionPostDispatch ( $observer ) |
public hookToControllerActionPreDispatch ( $observer ) |
public loadCacheClearEvents ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public removeCustomerGroupCookie ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public replaceFormKeyPlaceholder ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public setCustomerGroupCookie ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public setFlagHeaders ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |
public setReplaceFormKeyFlag ( Varien_Object $eventObject ) : null | ||
$eventObject | Varien_Object | |
return | null |