Date: 07/12/00
- Next message: kk: "[phplib-dev] cvs commit"
- Previous message: kk: "[phplib-dev] cvs commit"
- Next in thread: kk: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Wed Jul 12 20:26:14 2000
Added files:
php-lib-stable/php/menu.inc
Modified files:
php-lib-stable/php/local.inc
php-lib-stable/php/prepend.php3
Log message:
Added menu from the development tree.
Index: php-lib-stable/php/local.inc
diff -u php-lib-stable/php/local.inc:1.2 php-lib-stable/php/local.inc:1.3
--- php-lib-stable/php/local.inc:1.2 Wed Jul 12 20:22:35 2000
+++ php-lib-stable/php/local.inc Wed Jul 12 20:25:43 2000
@@ -5,7 +5,7 @@
* Copyright (c) 1998-2000 NetUSE AG
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: local.inc,v 1.2 2000/07/12 18:22:35 kk Exp $
+ * $Id: local.inc,v 1.3 2000/07/12 18:25:43 kk Exp $
*
*/
@@ -249,4 +249,55 @@
include($_PHPLIB["libdir"] . "perminvalid.ihtml");
}
}
+
+##
+## Example_Menu may extend Menu.
+## If you name this class differently, you must also
+## rename its constructor function - this is a PHP language
+## design stupidity.
+##
+## To use this, you must enable the require statement for
+## menu.inc in prepend.php3.
+##
+
+# class Example_Menu extends Menu {
+# var $classname = "Example_Menu";
+#
+# # Map of PHP_SELF URL strings to menu positions
+# var $urlmap = array(
+# "/menu/index.php3" => "",
+# "/menu/item1.php3" => "/1",
+# "/menu/item11.php3" => "/1/1",
+# "/menu/item12.php3" => "/1/2",
+# "/menu/item13.php3" => "/1/3",
+# "/menu/item2.php3" => "/2",
+# "/menu/item21.php3" => "/2/1",
+# "/menu/item22.php3" => "/2/2",
+# "/menu/item221.php3" => "/2/2/1",
+# "/menu/item222.php3" => "/2/2/2",
+# "/menu/item23.php3" => "/2/3",
+# "/menu/item24.php3" => "/2/4"
+# );
+#
+# # Information about each menu item
+# var $item = array(
+# "" => array("title" => "Main"),
+# "/1" => array("title" => "Text 1"),
+# "/1/1" => array("title" => "Text 1.1"),
+# "/1/2" => array("title" => "Text 1.2"),
+# "/1/3" => array("title" => "Text 1.3"),
+# "/2" => array("title" => "Text 2"),
+# "/2/1" => array("title" => "Text 2.1"),
+# "/2/2" => array("title" => "Text 2.2"),
+# "/2/2/1"=> array("title" => "Text 2.2.1"),
+# "/2/2/2"=> array("title" => "Text 2.2.2"),
+# "/2/3" => array("title" => "Text 2.3"),
+# "/2/4" => array("title" => "Text 2.4")
+# );
+#
+# function Example_Menu() {
+# $this->setup();
+# }
+# }
+
?>
Index: php-lib-stable/php/prepend.php3
diff -u php-lib-stable/php/prepend.php3:1.2 php-lib-stable/php/prepend.php3:1.3
--- php-lib-stable/php/prepend.php3:1.2 Wed Jul 12 20:22:35 2000
+++ php-lib-stable/php/prepend.php3 Wed Jul 12 20:25:44 2000
@@ -5,7 +5,7 @@
* Copyright (c) 1998-2000 NetUSE AG
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: prepend.php3,v 1.2 2000/07/12 18:22:35 kk Exp $
+ * $Id: prepend.php3,v 1.3 2000/07/12 18:25:44 kk Exp $
*
*/
@@ -24,6 +24,7 @@
require($_PHPLIB["libdir"] . "user.inc"); /* Disable this, if you are not using per-user variables. */
/* Additional require statements go below this line */
+# require($_PHPLIB["libdir"] . "menu.inc"); /* Enable to use Menu */
/* Additional require statements go before this line */
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: kk: "[phplib-dev] cvs commit"
- Previous message: kk: "[phplib-dev] cvs commit"
- Next in thread: kk: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

