메소드 |
설명 |
|
cleanExplode ( string $token, string $data ) : array |
Like built-in explode() but applies trim to each exploded element and
filters out empty elements from result |
|
freeze ( mixed $data ) : string |
Serialize a variable into a string that can be used in a URL |
|
generateUuid ( ) : string |
Generate a v4 UUID |
|
getAutoApplyOnSave ( ) : boolean |
Check if Turpentine should apply the new VCL on config changes |
|
getBypassCookieName ( ) : string |
Get the cookie name for the Varnish bypass |
|
getCacheKeyHash ( array $key ) : string |
Hash a cache key the same way blocks do |
|
getChildBlockNames ( Mage_Core_Model_Layout_Element $blockNode ) : array |
Get a list of child blocks inside the given block |
|
getHmac ( string $data ) : string |
Get the HMAC hash for given data |
|
getModelName ( string | object $model ) : string |
Get the getModel formatted name of a model classname or object |
|
getStripVclWhitespace ( ) : string |
Get config value specifying when to strip VCL whitespaces |
|
getVclFix ( ) : string |
Get config value specifying when to strip VCL whitespaces |
|
getVersion ( ) : string |
Get the Turpentine version |
|
secureHash ( string $data ) : string |
Get SHA256 hash of a string, salted with encryption key |
|
shouldStripVclWhitespace ( string $action ) : boolean |
Check if VCL whitespaces should be stripped for the given action |
|
thaw ( string $data ) : mixed |
Unserialize data |
|
urlBase64Decode ( string $str ) : string |
Base64 decode a string, counterpart to urlBase64Encode |
|
urlBase64Encode ( string $str ) : string |
Base64 encode a string |
|
useFlashMessagesFix ( ) : boolean |
Check config to see if Turpentine should handle the flash messages |
|
useProductListToolbarFix ( ) : boolean |
Check config to see if Turpentine should apply the product list toolbar
fix |
|