示例#1
0
 function load()
 {
     if (!$this->switches['flat']) {
         $this->tree->maxLevel = $this->getMaxLevel();
     }
     parent::load();
     // We want single rooted tree, add fake folder
     if (!$this->switches['root'] || $this->switches['flat']) {
         $oldroot = $this->root;
         $this->root = new SB_Tree_Node(array());
         $this->root->name = $oldroot->name;
         $this->root->comment = $oldroot->comment;
         $this->root->addNode($oldroot);
     }
 }