/** * Constructor * * @param string $template */ public function __construct($name, $template = NULL, $base_uri = NULL) { parent::__construct($name); cogear()->menu->register($name, $this); $template && ($this->template = $template); $this->base_uri = rtrim(parse_url($base_uri ? $base_uri : Url::link(), PHP_URL_PATH), '/') . '/'; }
function __construct(array $a) { parent::__construct($a); }