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); }
public function __construct($menu) { parent::__construct(); $this->setMenu($menu); }