Class

eZTemplateFileResource

class eZTemplateFileResource

Properties

$Name
$ServesStaticData
$TemplateCache

Methods

__construct(string $name = 'file', bool $servesStaticData = true)

Initializes with a default resource name "file".

resourceName()

servesStaticData()

templateNodeTransformation($functionName, $node, $tpl, $resourceData, $parameters, $namespaceValue)

cacheKey($keyData, $res, $templatePath, $extraParameters)

hasCachedProcessTree($keyData, $uri, $res, $templatePath, $extraParameters, $timestamp)

compileTemplate($tpl, $keyData, $uri, $res, $templatePath, $extraParameters, $resourceData)

executeCompiledTemplate($tpl, $textElements, $keyData, $uri, $resourceData, $templatePath, $extraParameters, $timestamp, $rootNamespace, $currentNamespace)

hasCompiledTemplate($keyData, $uri, $resourceData, $templatePath, $extraParameters, $timestamp)

canCompileTemplate($tpl, $resourceData, $extraParameters)

cachedTemplateTree($keyData, $uri, $res, $templatePath, $extraParameters, $timestamp)

setCachedTemplateTree($keyData, $uri, $res, $templatePath, $extraParameters, $root)

handleResource($tpl, $resourceData, $method, $extraParameters)

handleResourceData($tpl, $handler, $resourceData, $method, $extraParameters)

Details

at line 28
public __construct(string $name = 'file', bool $servesStaticData = true)

Initializes with a default resource name "file".

Also sets whether the resource servers static data files, this is needed for the cache system.

Parameters

string $name
bool $servesStaticData

at line 38
public resourceName()

at line 47
public servesStaticData()

at line 52
public templateNodeTransformation($functionName, $node, $tpl, $resourceData, $parameters, $namespaceValue)

Parameters

$functionName
$node
$tpl
$resourceData
$parameters
$namespaceValue

at line 79
public cacheKey($keyData, $res, $templatePath, $extraParameters)

Parameters

$keyData
$res
$templatePath
$extraParameters

at line 88
public hasCachedProcessTree($keyData, $uri, $res, $templatePath, $extraParameters, $timestamp)

Parameters

$keyData
$uri
$res
$templatePath
$extraParameters
$timestamp

at line 100
public compileTemplate($tpl, $keyData, $uri, $res, $templatePath, $extraParameters, $resourceData)

Parameters

$tpl
$keyData
$uri
$res
$templatePath
$extraParameters
$resourceData

at line 109
public executeCompiledTemplate($tpl, $textElements, $keyData, $uri, $resourceData, $templatePath, $extraParameters, $timestamp, $rootNamespace, $currentNamespace)

Parameters

$tpl
$textElements
$keyData
$uri
$resourceData
$templatePath
$extraParameters
$timestamp
$rootNamespace
$currentNamespace

at line 122
public hasCompiledTemplate($keyData, $uri, $resourceData, $templatePath, $extraParameters, $timestamp)

Parameters

$keyData
$uri
$resourceData
$templatePath
$extraParameters
$timestamp

at line 131
public canCompileTemplate($tpl, $resourceData, $extraParameters)

Parameters

$tpl
$resourceData
$extraParameters

at line 139
public cachedTemplateTree($keyData, $uri, $res, $templatePath, $extraParameters, $timestamp)

Parameters

$keyData
$uri
$res
$templatePath
$extraParameters
$timestamp

at line 150
public setCachedTemplateTree($keyData, $uri, $res, $templatePath, $extraParameters, $root)

Parameters

$keyData
$uri
$res
$templatePath
$extraParameters
$root

at line 161
public handleResource($tpl, $resourceData, $method, $extraParameters)

Parameters

$tpl
$resourceData
$method
$extraParameters

at line 173
public handleResourceData($tpl, $handler, $resourceData, $method, $extraParameters)

Parameters

$tpl
$handler
$resourceData
$method
$extraParameters