Tree.class.php (419B)
1 <?php 2 3 namespace template_engine\components; 4 5 use template_engine\components\html\Component; 6 use template_engine\element\CMSElement; 7 8 class TreeComponent extends Component 9 { 10 public $tree; 11 12 public function createElement() 13 { 14 return new CMSElement(null); 15 } 16 17 public function unsed__begin() 18 { 19 parent::includeResource('tree/component-tree.php'); 20 echo '<?php component_tree('.$this->value($this->tree).') ?>'; 21 } 22 }