From: Roland Häder Date: Fri, 31 Jul 2009 17:50:38 +0000 (+0000) Subject: Missing 'register_menu_class' added X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=commitdiff_plain;h=03c5a1e0b801ab3173af4a9b3208ebf5c8f4be94;ds=sidebyside Missing 'register_menu_class' added --- diff --git a/.gitattributes b/.gitattributes index b03d25c..10e827c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -144,6 +144,7 @@ application/ship-simu/main/menu/.htaccess -text application/ship-simu/main/menu/class_ShipSimu -text application/ship-simu/main/menu/class_ShipSimuHomeMenu.php -text application/ship-simu/main/menu/class_ShipSimuLoginMenu.php -text +application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php -text application/ship-simu/main/parts/.htaccess -text application/ship-simu/main/parts/class_BaseShipPart.php -text application/ship-simu/main/parts/maschineroom/.htaccess -text diff --git a/application/ship-simu/config.php b/application/ship-simu/config.php index 8ac2c9f..a4e9406 100644 --- a/application/ship-simu/config.php +++ b/application/ship-simu/config.php @@ -406,5 +406,8 @@ $cfg->setConfigEntry('home_menu_class', "ShipSimuHomeMenu"); // CFG: LOGIN-MENU-CLASS $cfg->setConfigEntry('login_menu_class', "ShipSimuLoginMenu"); +// CFG: REGISTER-MENU-CLASS +$cfg->setConfigEntry('register_menu_class', "ShipSimuRegisterMenu"); + // [EOF] ?> diff --git a/application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php b/application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php new file mode 100644 index 0000000..b6bd253 --- /dev/null +++ b/application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php @@ -0,0 +1,50 @@ + + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu 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 ShipSimuRegisterMenu 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 createShipSimuRegisterMenu () { + // Get a new instance + $menuInstance = new ShipSimuRegisterMenu(); + + // Return the prepared instance + return $menuInstance; + } +} + +// [EOF] +?>