/**
  * Renders a node recursive or just a single instance
  *
  * @param t3lib_tree_RepresentationNode $node
  * @param bool $recursive
  * @return mixed
  */
 public function renderNode(t3lib_tree_RepresentationNode $node, $recursive = TRUE)
 {
     $code = '<li><span class="' . $node->getIcon() . '">&nbsp;</span>' . $node->getLabel();
     if ($recursive && $node->getChildNodes() !== NULL) {
         $this->recursionLevel++;
         $code .= $this->renderNodeCollection($node->getChildNodes());
         $this->recursionLevel--;
     }
     $code .= '</li>';
     return $code;
 }
 /**
  *
  */
 protected function getNodeArray(t3lib_tree_RepresentationNode $node)
 {
     $nodeArray = array('iconCls' => $node->getIcon(), 'text' => $node->getLabel(), 'leaf' => !$node->hasChildNodes(), 'id' => $node->getId(), 'uid' => $node->getId());
     return $nodeArray;
 }