/** * Constructor * * @param array &$params An array parameter * * @return void */ function __construct(&$params) { $params->set('megamenu', 1); parent::__construct($params); if (!$this->getParam('menuname')) { $this->setParam('menuname', 'megamenu'); } }
/** * Generate menu * * @param int $startlevel Start menu level * @param int $endlevel End menu level * * @return string The generate menu rendering */ function genMenu($startlevel = 0, $endlevel = 10) { if ($startlevel == 0) { parent::genMenu(0, 0); } else { parent::genMenu($startlevel, $endlevel); } }
/** * Constructor * * @param array $params An array parameter * * @return void */ function __construct($params) { $params->set('megamenu', 0); // Tell its not a mega menu parent::__construct($params); }