function Render()
 {
     $result = '';
     $item = $this->first;
     while ($item) {
         $renderer = new ContentRenderer($item, $this->tree);
         $result .= $renderer->Render();
         $item = $this->tree->NextOf($item);
     }
     return $result;
 }
示例#2
0
 /**
  * Renders the child 
  * @param mixed $child The current content tree item
  */
 protected function RenderChild($child)
 {
     $renderer = new ContentRenderer($child, $this->tree);
     return $renderer->Render();
 }
示例#3
0
 /**
  * Renders the current child item
  * @return string
  */
 private function RenderCurrentChild()
 {
     $renderer = new ContentRenderer($this->currentChild, $this->tree);
     return $renderer->Render();
 }