|
eZ Publish
[4.2]
|
Advanced cache handling. More...
Public Member Functions | |
| eZTemplateCacheFunction ($blockName= 'cache-block') | |
| functionList () | |
| functionTemplateHints () | |
| generateProcessedContent ($fname, $args) | |
| hasChildren () | |
| process ($tpl, &$textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace) | |
| processCached ($tpl, $functionChildren, $rootNamespace, $currentNamespace, $placementString, $keys, $subtreeExpiry, $expiry, $ignoreContentExpiry) | |
| processCachedPreprocess ($tpl, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace) | |
| templateNodeTransformation ($functionName, &$node, $tpl, $parameters, $privateData) | |
Static Public Member Functions | |
| static | expiryTemplateBlockCacheDir () |
| static | subtreeCacheBaseSubDir () |
| static | subtreeCacheSubDir ($subtreeExpiryParameter, $cacheFilename) |
| static | subtreeCacheSubDirForNode ($nodeID) |
| static | templateBlockCacheDir () |
Public Attributes | |
| $BlockName | |
| Name of the function. | |
| const | DEFAULT_TTL = 7200 |
Static Private Member Functions | |
| processUncached ($tpl, $functionChildren, $rootNamespace, $currentNamespace) | |
Advanced cache handling.
Definition at line 38 of file eztemplatecachefunction.php.
| static eZTemplateCacheFunction::expiryTemplateBlockCacheDir | ( | ) | [static] |
Definition at line 363 of file eztemplatecachefunction.php.
Referenced by eZSubtreeCache\removeAllExpiryCacheFromDisk(), and eZSubtreeCache\renameDir().
| eZTemplateCacheFunction::eZTemplateCacheFunction | ( | $ | blockName = 'cache-block' | ) |
Initializes the object with names.
Definition at line 45 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::functionList | ( | ) |
Returns an array containing the name of the block function, default is "block". The name is specified in the constructor.
Definition at line 54 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::functionTemplateHints | ( | ) |
Definition at line 59 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::generateProcessedContent | ( | $ | fname, |
| $ | args | ||
| ) |
Definition at line 307 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::hasChildren | ( | ) |
Returns true.
Definition at line 341 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::process | ( | $ | tpl, |
| &$ | textElements, | ||
| $ | functionName, | ||
| $ | functionChildren, | ||
| $ | functionParameters, | ||
| $ | functionPlacement, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) |
Processes the function with all it's children.
Definition at line 194 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::processCached | ( | $ | tpl, |
| $ | functionChildren, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace, | ||
| $ | placementString, | ||
| $ | keys, | ||
| $ | subtreeExpiry, | ||
| $ | expiry, | ||
| $ | ignoreContentExpiry | ||
| ) |
Definition at line 255 of file eztemplatecachefunction.php.
Referenced by processCachedPreprocess().
| eZTemplateCacheFunction::processCachedPreprocess | ( | $ | tpl, |
| $ | functionChildren, | ||
| $ | functionParameters, | ||
| $ | functionPlacement, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) |
Definition at line 220 of file eztemplatecachefunction.php.
Referenced by process().
| eZTemplateCacheFunction::processUncached | ( | $ | tpl, |
| $ | functionChildren, | ||
| $ | rootNamespace, | ||
| $ | currentNamespace | ||
| ) | [static, private] |
Performs processing of the cache-block using the non-compiled way and with caching off.
Definition at line 321 of file eztemplatecachefunction.php.
Referenced by generateProcessedContent(), and process().
| static eZTemplateCacheFunction::subtreeCacheBaseSubDir | ( | ) | [static] |
Definition at line 353 of file eztemplatecachefunction.php.
Referenced by eZSubtreeCache\cleanupAll().
| static eZTemplateCacheFunction::subtreeCacheSubDir | ( | $ | subtreeExpiryParameter, |
| $ | cacheFilename | ||
| ) | [static] |
Definition at line 384 of file eztemplatecachefunction.php.
| static eZTemplateCacheFunction::subtreeCacheSubDirForNode | ( | $ | nodeID | ) | [static] |
Definition at line 394 of file eztemplatecachefunction.php.
Referenced by eZSubtreeCache\cleanup().
| static eZTemplateCacheFunction::templateBlockCacheDir | ( | ) | [static] |
Definition at line 374 of file eztemplatecachefunction.php.
Referenced by eZSubtreeCache\cleanup(), and eZSubtreeCache\cleanupAll().
| eZTemplateCacheFunction::templateNodeTransformation | ( | $ | functionName, |
| &$ | node, | ||
| $ | tpl, | ||
| $ | parameters, | ||
| $ | privateData | ||
| ) |
Definition at line 68 of file eztemplatecachefunction.php.
| eZTemplateCacheFunction::$BlockName |
Name of the function.
Definition at line 401 of file eztemplatecachefunction.php.
| const eZTemplateCacheFunction::DEFAULT_TTL = 7200 |
Definition at line 40 of file eztemplatecachefunction.php.
Referenced by processCachedPreprocess().