示例#1
0
 public function __construct($menu, $type = 'menu')
 {
     parent::__construct();
     $this->type = $type;
     $this->traversingMethod = $type == 'menu' ? 'recursiveDFSRender' : 'BFSRender';
     $this->setMenu($menu);
     $this->setLabel($menu->labelName);
     $this->setLang($menu->lang);
 }
示例#2
0
 public function __construct($menu)
 {
     parent::__construct();
     $this->setMenu($menu);
 }