Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

eztemplateroot.php
Go to the documentation of this file.
1 <?php
25 class eZTemplateRoot
26 {
32 public function __construct( $children = array() )
33 {
34 $this->Children = $children;
35 }
36
40 function name()
41 {
42 return "#root";
43 }
44
45 function serializeData()
46 {
47 return array( 'class_name' => 'eZTemplateRoot',
48 'parameters' => array( 'children' ),
49 'variables' => array( 'children' => 'Children' ) );
50 }
51
55 function process( $tpl, &$text, $nspace, $current_nspace )
56 {
57 foreach( array_keys( $this->Children ) as $key )
58 {
59 $this->Children[$key]->process( $tpl, $text, $nspace, $current_nspace );
60 }
61 }
62
66 function clear()
67 {
68 $this->Children = array();
69 }
70
74 function &children()
75 {
76 return $this->Children;
77 }
78
82 function appendChild( &$node )
83 {
84 $this->Children[] =& $node;
85 }
86
88 public $Children = array();
89 }
90
91 ?>
eZTemplateRoot
Represents a root element of the template tree.
Definition: eztemplateroot.php:26
eZTemplateRoot\__construct
__construct( $children=array())
Definition: eztemplateroot.php:32
eZTemplateRoot\clear
clear()
Definition: eztemplateroot.php:66
eZTemplateRoot\appendChild
appendChild(&$node)
Definition: eztemplateroot.php:82
eZTemplateRoot\name
name()
Definition: eztemplateroot.php:40
eZTemplateRoot\$Children
$Children
The child array.
Definition: eztemplateroot.php:88
eZTemplateRoot\process
process( $tpl, &$text, $nspace, $current_nspace)
Definition: eztemplateroot.php:55
eZTemplateRoot\serializeData
serializeData()
Definition: eztemplateroot.php:45
eZTemplateRoot\children
& children()
Definition: eztemplateroot.php:74
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.