eZPublish
4.7
|
Includes external template code using function "include". More...
Public Member Functions | |
eZTemplateIncludeFunction ($inc_name="include") | |
functionList () | |
functionTemplateHints () | |
hasChildren () | |
process ($tpl, &$textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace) | |
templateNodeTransformation ($functionName, &$node, $tpl, $parameters, $privateData) | |
Static Public Member Functions | |
static | handleInclude (&$textElements, &$uri, $tpl, $rootNamespace, $name) |
Public Attributes | |
$IncludeName | |
The name of the include function. More... | |
Includes external template code using function "include".
Allows the template designer to include another template file dynamically. This allows for reuse of commonly used template code. The new template file will loaded into the current namespace or a namspace specified by the template designer, any extra parameters to this function is set as template variables for the template file using the newly aquired namespace.
eZTemplateIncludeFunction::eZTemplateIncludeFunction | ( | $inc_name = "include" | ) |
Initializes the function with the function name $inc_name.
eZTemplateIncludeFunction::functionList | ( | ) |
Returns an array of the function names, required for eZTemplate::registerFunctions.
eZTemplateIncludeFunction::functionTemplateHints | ( | ) |
|
static |
Takes care of loading the template file and set it in the $text parameter.
Referenced by eZTemplate\appendElementText(), contentPDFGenerate(), generatePDF(), process(), and eZXMLOutputHandler\renderTag().
eZTemplateIncludeFunction::hasChildren | ( | ) |
Returns false, telling the template parser that this is a single tag.
eZTemplateIncludeFunction::process | ( | $tpl, | |
& | $textElements, | ||
$functionName, | |||
$functionChildren, | |||
$functionParameters, | |||
$functionPlacement, | |||
$rootNamespace, | |||
$currentNamespace | |||
) |
Loads the file specified in the parameter "uri" with namespace "name".
eZTemplateIncludeFunction::templateNodeTransformation | ( | $functionName, | |
& | $node, | ||
$tpl, | |||
$parameters, | |||
$privateData | |||
) |
eZTemplateIncludeFunction::$IncludeName |
The name of the include function.