Class

eZTemplateSetFunction

class eZTemplateSetFunction

Constants

SCOPE_RELATIVE

SCOPE_ROOT

SCOPE_GLOBAL

Properties

$SetName
$LetName
$DefaultName

Methods

__construct(string $setName = 'set', string $letName = 'let', string $defaultName = 'default')

Initializes the function with the function names $setName and $letName.

functionList()

functionTemplateHints()

templateNodeTransformation($functionName, $node, $tpl, $parameters, $privateData)

templateHookProcess($functionName, $functionHookName, $functionHook, $tpl, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace)

defineVariables($tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, $currentNamespace)

createDefaultVariables($tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, $currentNamespace)

cleanupVariables($tpl, $rootNamespace, $currentNamespace, $setData)

process($tpl, $textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace)

hasChildren()

Details

at line 49
public __construct(string $setName = 'set', string $letName = 'let', string $defaultName = 'default')

Initializes the function with the function names $setName and $letName.

Parameters

string $setName
string $letName
string $defaultName

at line 59
public functionList()

at line 64
public functionTemplateHints()

at line 83
public templateNodeTransformation($functionName, $node, $tpl, $parameters, $privateData)

Parameters

$functionName
$node
$tpl
$parameters
$privateData

at line 185
public templateHookProcess($functionName, $functionHookName, $functionHook, $tpl, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace)

Parameters

$functionName
$functionHookName
$functionHook
$tpl
$functionParameters
$functionPlacement
$rootNamespace
$currentNamespace

at line 190
public defineVariables($tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, $currentNamespace)

Parameters

$tpl
$functionParameters
$functionPlacement
$name
$rootNamespace
$currentNamespace

at line 225
public createDefaultVariables($tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, $currentNamespace)

Parameters

$tpl
$functionParameters
$functionPlacement
$name
$rootNamespace
$currentNamespace

at line 253
public cleanupVariables($tpl, $rootNamespace, $currentNamespace, $setData)

Parameters

$tpl
$rootNamespace
$currentNamespace
$setData

at line 266
public process($tpl, $textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace)

Parameters

$tpl
$textElements
$functionName
$functionChildren
$functionParameters
$functionPlacement
$rootNamespace
$currentNamespace

at line 369
public hasChildren()