From c33e62c1d793713e8627af655488b99c1817ab64 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Sun, 30 Aug 2009 02:21:47 +0000
Subject: [PATCH] Missing menu class and config entries added

---
 .gitattributes                                |  3 ++
 application/install/config.php                |  6 +++
 application/install/main/menu/.htaccess       |  1 +
 application/install/main/menu/class_Install   | 50 +++++++++++++++++++
 .../main/menu/class_InstallHomeMenu.php       | 50 +++++++++++++++++++
 5 files changed, 110 insertions(+)
 create mode 100644 application/install/main/menu/.htaccess
 create mode 100644 application/install/main/menu/class_Install
 create mode 100644 application/install/main/menu/class_InstallHomeMenu.php

diff --git a/.gitattributes b/.gitattributes
index 960cc50..fa552f4 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -27,6 +27,9 @@ application/install/main/filter/.htaccess -text
 application/install/main/filter/class_ -text
 application/install/main/filter/class_BaseInstallFilter.php -text
 application/install/main/filter/install/.htaccess -text
+application/install/main/menu/.htaccess -text
+application/install/main/menu/class_Install -text
+application/install/main/menu/class_InstallHomeMenu.php -text
 application/install/starter.php -text
 application/install/templates/.htaccess -text
 application/install/templates/de/.htaccess -text
diff --git a/application/install/config.php b/application/install/config.php
index 821ea48..50d11bb 100644
--- a/application/install/config.php
+++ b/application/install/config.php
@@ -46,5 +46,11 @@ $cfg->setConfigEntry('web_form_helper', 'WebFormHelper');
 // CFG: WEB-LINK-HELPER
 $cfg->setConfigEntry('web_link_helper', 'WebLinkHelper');
 
+// CFG: WEB-CMD-HOME-RESOLVER-CLASS
+$cfg->setConfigEntry('web_cmd_home_resolver_class', 'WebCommandResolver');
+
+// CFG: HOME-MENU-CLASS
+$cfg->setConfigEntry('home_menu_class', 'InstallHomeMenu');
+
 // [EOF]
 ?>
diff --git a/application/install/main/menu/.htaccess b/application/install/main/menu/.htaccess
new file mode 100644
index 0000000..3a42882
--- /dev/null
+++ b/application/install/main/menu/.htaccess
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/install/main/menu/class_Install b/application/install/main/menu/class_Install
new file mode 100644
index 0000000..2295888
--- /dev/null
+++ b/application/install/main/menu/class_Install
@@ -0,0 +1,50 @@
+<?php
+/**
+ * A ??? menu class for Installation-Wizard
+ *
+ * @author		Roland Haeder <webmaster@ship-simu.org>
+ * @version		0.0.0
+ * @copyright	Copyright (c) 2007, 2008 Roland Haeder, 2009 Installation-Wizard 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 Install???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 createInstall???Menu () {
+		// Get a new instance
+		$menuInstance = new Install???Menu();
+
+		// Return the prepared instance
+		return $menuInstance;
+	}
+}
+
+// [EOF]
+?>
diff --git a/application/install/main/menu/class_InstallHomeMenu.php b/application/install/main/menu/class_InstallHomeMenu.php
new file mode 100644
index 0000000..e4e3d28
--- /dev/null
+++ b/application/install/main/menu/class_InstallHomeMenu.php
@@ -0,0 +1,50 @@
+<?php
+/**
+ * A Home menu class for Installation-Wizard
+ *
+ * @author		Roland Haeder <webmaster@ship-simu.org>
+ * @version		0.0.0
+ * @copyright	Copyright (c) 2007, 2008 Roland Haeder, 2009 Installation-Wizard 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 InstallHomeMenu 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 createInstallHomeMenu () {
+		// Get a new instance
+		$menuInstance = new InstallHomeMenu();
+
+		// Return the prepared instance
+		return $menuInstance;
+	}
+}
+
+// [EOF]
+?>
-- 
2.39.5