Tree_Menu
| From: | Björn Schotte | Date: | Mon, 24 Jun 2002 21:10:52 +0000 |
| Subject: | Tree_Menu | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-7333@lists.php.net to get a copy of this message | ||
Hi guys,
I developed a class called tree manager which uses
the known structure from Ulf Wendel's Menu3 class (array
structure) in order to display a graphical tree menu like
that from WindowsExplorer (opened nodes will be saved
in the session). At the moment I extended the array structure
to have a key called "icon" which will display the appropriate
icon for the menu node.
Is that of any interest to you? Included is a function which
reads a DB structure (id, parent, menuname etc.) and builds the
array structure, including a function to insert one menu3 structure
into a node of another menu3 structure and then displaying the
WinExplorer like tree.
If there's already such a thing in PEAR (at the moment I don't
have an overview yet), no problem.
--
PHP-Support * realitätsnahe Performance-Messungen mit Code-Analyse
Webapplikationsentwicklung * PHP-Schulungen * Consulting
0700-THINKPHP -*- bjoern@thinkphp.de