Namespace = $Namespace; $this->MenuId = $MenuId; $this->Filename = $Filename; } /** * Check if menu id is equal to params * @param string $menuId * @return bool */ public function equalMenuIdTo($menuId) { return $menuId == $this->MenuId; } /** * Check if nmae of plugin is equal to params * @param string $Namespace * @return bool */ public function equalNamespaceTo($Namespace) { return $Namespace == $this->Namespace; } /** * Check if file exists * @return bool */ public function exitsFile() { return file_exists($this->Filename); } /** * Include file * @return bool */ public function includeFileMenu() { include($this->Filename); } }