示例#1
0
 /**
  * Render the child and its child nodes
  *
  * @param  boolean $ret
  * @param  int     $depth
  * @param  string  $indent
  * @param  string  $errorIndent
  * @return mixed
  */
 public function render($ret = false, $depth = 0, $indent = null, $errorIndent = null)
 {
     $datalist = parent::render(true, $depth, $indent) . $this->datalist->render(true, $depth, $indent);
     // Return or print the rendered child node output.
     if ($ret) {
         return $datalist;
     } else {
         echo $datalist;
     }
 }