name = $name; $this->controller = $controller; $this->action = $action; $this->params = $params; $this->icon = $icon; $this->url = $isUrl ? BuildUrl::getUrl($this->controller, $this->action, $this->params) : null; } public function getName() { return $this->name; } public function isUrl() { return ($this->url ? true : false); } public function getUrl() { return $this->url; } public function isIcon() { return ($this->icon ? true : false); } public function getIcon() { return $this->icon; } }