Example #1
0
 /**
  * Returns html
  *
  * @param integer $indent
  * @param array $extraargs any extra data that is needed to print the list item
  *                            may be used by sub class.
  * @return string html
  */
 function to_html($indent = 0, $extraargs = array())
 {
     if (!$this->display) {
         return '';
     }
     $tabs = str_repeat("\t", $indent);
     if (isset($this->children)) {
         $childrenhtml = $this->children->to_html($indent + 1, $extraargs);
     } else {
         $childrenhtml = '';
     }
     return $this->item_html($extraargs) . ' ' . join($this->icons, '') . ($childrenhtml != '' ? "\n" . $childrenhtml : '');
 }