예제 #1
0
파일: TreeMenu.php 프로젝트: Dulciane/jaws
 /**
  * Public constructor
  *
  * @param    string   $toptext Root text
  * @param    string   $id      The ID of the div that will have the treemenu
  * @access   public
  */
 function TreeMenu($toptext, $id = 'treemenu')
 {
     $this->_rootText = $toptext;
     $this->_paths = array();
     $this->_class = 'DynamicTree';
     $this->_imagesDirectory = PIWI_URL . 'piwidata/art/treemenu/';
     $this->_id = $id;
     if (empty($this->_id)) {
         die("TreeMenu should have an id!");
     }
     parent::init();
 }