示例#1
0
 /**
  * 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');
     }
 }
示例#2
0
 /**
  * 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);
     }
 }
示例#3
0
 /**
  * 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);
 }