From e36c010e66334be6f3d30f829a3575b39e067b3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 30 Aug 2009 02:18:55 +0000 Subject: [PATCH] Missing menu class added --- .gitattributes | 3 ++ application/admin/config.php | 2 +- application/admin/main/menu/.htaccess | 1 + application/admin/main/menu/class_Admin | 50 +++++++++++++++++++ .../admin/main/menu/class_AdminHomeMenu.php | 50 +++++++++++++++++++ 5 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 application/admin/main/menu/.htaccess create mode 100644 application/admin/main/menu/class_Admin create mode 100644 application/admin/main/menu/class_AdminHomeMenu.php diff --git a/.gitattributes b/.gitattributes index ac800f0..f123e0c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -24,6 +24,9 @@ application/admin/main/login/.htaccess -text application/admin/main/login/class_AdminUserLogin.php -text application/admin/main/login/helper/.htaccess -text application/admin/main/login/helper/class_AdminLoginHelper.php -text +application/admin/main/menu/.htaccess -text +application/admin/main/menu/class_Admin -text +application/admin/main/menu/class_AdminHomeMenu.php -text application/admin/starter.php -text application/admin/templates/.htaccess -text application/admin/templates/de/.htaccess -text diff --git a/application/admin/config.php b/application/admin/config.php index 5a5a34a..78c0a74 100644 --- a/application/admin/config.php +++ b/application/admin/config.php @@ -251,7 +251,7 @@ $cfg->setConfigEntry('web_link_helper', 'WebLinkHelper'); $cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver'); // CFG: HOME-MENU-CLASS -$cfg->setConfigEntry('home_menu_class', 'ShipSimuHomeMenu'); +$cfg->setConfigEntry('home_menu_class', 'AdminHomeMenu'); // [EOF] ?> diff --git a/application/admin/main/menu/.htaccess b/application/admin/main/menu/.htaccess new file mode 100644 index 0000000..3a42882 --- /dev/null +++ b/application/admin/main/menu/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/application/admin/main/menu/class_Admin b/application/admin/main/menu/class_Admin new file mode 100644 index 0000000..031563b --- /dev/null +++ b/application/admin/main/menu/class_Admin @@ -0,0 +1,50 @@ + + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Admin-Area Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +class Admin???Menu extends BaseMenu implements RenderableMenu { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this class + * + * @return $menuInstance An instance of this class + */ + public final static function createAdmin???Menu () { + // Get a new instance + $menuInstance = new Admin???Menu(); + + // Return the prepared instance + return $menuInstance; + } +} + +// [EOF] +?> diff --git a/application/admin/main/menu/class_AdminHomeMenu.php b/application/admin/main/menu/class_AdminHomeMenu.php new file mode 100644 index 0000000..55264a6 --- /dev/null +++ b/application/admin/main/menu/class_AdminHomeMenu.php @@ -0,0 +1,50 @@ + + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Admin-Area Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +class AdminHomeMenu extends BaseMenu implements RenderableMenu { + /** + * Protected constructor + * + * @return void + */ + protected function __construct () { + // Call parent constructor + parent::__construct(__CLASS__); + } + + /** + * Creates an instance of this class + * + * @return $menuInstance An instance of this class + */ + public final static function createAdminHomeMenu () { + // Get a new instance + $menuInstance = new AdminHomeMenu(); + + // Return the prepared instance + return $menuInstance; + } +} + +// [EOF] +?> -- 2.39.5