--- nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/DHTMLTreeNav.inc 2003/04/18 13:53:05 1.1 +++ nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/DHTMLTreeNav.inc 2003/05/13 16:29:11 1.2 @@ -1,36 +1,65 @@ render!). - -// It uses phpHtmlLib::TreeNav::PearHtmlTreeMenuBridge to access -// some fine component libraries from PEAR to get things done. - -// Please also visit its sister class phpHtmlLib::TreeNav::SelectNav, -// which displays a nested tree flattened into a html-form "select" element. - - +/** + * This file contains the TreeNav_PearHtmlTreeMenuBridge class. + * + * @author Andreas Motl + * @package org.netfrag.patches + * @name DHTMLTreeNav + * + */ + +/** + * Cvs-Log: + * + * $Id: DHTMLTreeNav.inc,v 1.2 2003/05/13 16:29:11 joko Exp $ + * + * $Log: DHTMLTreeNav.inc,v $ + * Revision 1.2 2003/05/13 16:29:11 joko + * using built-in structure reader + * + * + * Revision 1.1 2003/04/18 13:53:05 joko + * from com.newsblob.phphtmllib/widgets + * + * Revision 1.2 2003/02/28 04:24:17 joko + * disabled benchmarking + * - purged old code + * + * Revision 1.1 2003/02/27 16:57:17 joko + * + initial commit, inherits from BaseWidget, uses pear-bridge + * + * + */ + +/** + * DHTMLTreeNav + * + * This is a phpHtmlLib extension class implementing nested trees. + * + * It inherits from phpHtmlLib's BaseWidget to be transparently spooled + * down when rendering (->render!). + * + * It uses phpHtmlLib::TreeNav::PearHtmlTreeMenuBridge to access + * some fine component libraries from PEAR to get things done. + * + * Please also visit its sister class phpHtmlLib::TreeNav::SelectNav, + * which displays a nested tree flattened into a html-form "select" element. + * + * + * @author Andreas Motl + * @copyright (c) 2003 - All Rights reserved. + * @license GNU LGPL (GNU Lesser General Public License) + * + * @link http://www.netfrag.org/~joko/ + * @link http://www.gnu.org/licenses/lgpl.txt + * + * @package org.netfrag.patches + * @subpackage phphtmllib::widgets + * @name DHTMLTreeNav + * + * @link http://cvs.netfrag.org/php/libs/org.netfrag.patches + * + */ class DHTMLTreeNav extends BaseWidget { var $pearbridge; @@ -46,11 +75,15 @@ $args[payload] = &$payload; $args[type] = 'DHTML'; + + // NEW [2003-04-20]: use HTML_TreeMenu's builtin PEAR::Tree structure handler + $args[converter] = 'builtin.kriesing'; + $this->pearbridge = new TreeNav_PearHtmlTreeMenuBridge(&$args); $this->menuobject = $this->pearbridge->getMenuObject(); // initialize output the phpHtmlLib way - $this->_init_output(); + $this->_init_output(); }