Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

eztemplatevariableelement.php
Go to the documentation of this file.
1 <?php
19 class eZTemplateVariableElement
20 {
26 public function __construct( $data )
27 {
28 $this->Variable = $data;
29 }
30
34 function name()
35 {
36 return "#variable";
37 }
38
39 function serializeData()
40 {
41 return array( 'class_name' => 'eZTemplateVariableElement',
42 'parameters' => array( 'data' ),
43 'variables' => array( 'data' => 'Variable' ) );
44 }
45
49 function process( $tpl, &$text, $nspace, $current_nspace )
50 {
51 $value = $tpl->elementValue( $this->Variable, $nspace );
52 $tpl->appendElement( $text, $value, $nspace, $current_nspace );
53 }
54
58 function variable()
59 {
60 return $this->Variable;
61 }
62
64 public $Variable;
65 }
66
67 ?>
eZTemplateVariableElement
Represents a variable element in the template tree.
Definition: eztemplatevariableelement.php:20
eZTemplateVariableElement\name
name()
Definition: eztemplatevariableelement.php:34
eZTemplateVariableElement\__construct
__construct( $data)
Definition: eztemplatevariableelement.php:26
eZTemplateVariableElement\process
process( $tpl, &$text, $nspace, $current_nspace)
Definition: eztemplatevariableelement.php:49
eZTemplateVariableElement\serializeData
serializeData()
Definition: eztemplatevariableelement.php:39
eZTemplateVariableElement\$Variable
$Variable
The variable array.
Definition: eztemplatevariableelement.php:64
eZTemplateVariableElement\variable
variable()
Definition: eztemplatevariableelement.php:58
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.