]> git.mxchange.org Git - shipsimu.git/commitdiff
Missing 'register_menu_class' added
authorRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 17:50:38 +0000 (17:50 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 17:50:38 +0000 (17:50 +0000)
.gitattributes
application/ship-simu/config.php
application/ship-simu/main/menu/class_ShipSimuRegisterMenu.php [new file with mode: 0644]

index b03d25c643b58a70619fdad7098b57878f567a15..10e827c45b720990c339826a8a695a02b1cd90aa 100644 (file)
@@ -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
index 8ac2c9fa58171514edd397dec14ec15a7d2c3544..a4e94065aab7e1300b1422d909a38ed497f12667 100644 (file)
@@ -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 (file)
index 0000000..b6bd253
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/**
+ * A menu class for Ship-Simu
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @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 <http://www.gnu.org/licenses/>.
+ */
+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]
+?>