/[cvs]/nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/DHTMLTreeNav.inc
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.patches/phphtmllib/widgets/DHTMLTreeNav.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Fri Apr 18 13:53:05 2003 UTC revision 1.2 by joko, Tue May 13 16:29:11 2003 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /*  /**
3  ## -------------------------------------------------------------------------   * This file contains the TreeNav_PearHtmlTreeMenuBridge class.
4  ##  $Id$   *
5  ## -------------------------------------------------------------------------   * @author Andreas Motl <andreas.motl@ilo.de>
6  ##  $Log$   * @package org.netfrag.patches
7  ##  Revision 1.1  2003/04/18 13:53:05  joko   * @name DHTMLTreeNav
8  ##  from com.newsblob.phphtmllib/widgets   *
9  ##   */
10  ##  Revision 1.2  2003/02/28 04:24:17  joko  
11  ##  disabled benchmarking  /**
12  ##  - purged old code   * Cvs-Log:
13  ##   *
14  ##  Revision 1.1  2003/02/27 16:57:17  joko   * $Id$
15  ##  + initial commit, inherits from BaseWidget, uses pear-bridge   *
16  ##   * $Log$
17  ## -------------------------------------------------------------------------   * Revision 1.2  2003/05/13 16:29:11  joko
18  */   * using built-in structure reader
19     *
20     *
21     * Revision 1.1  2003/04/18 13:53:05  joko
22  //  This is a phpHtmlLib extension class implementing nested trees.   * from com.newsblob.phphtmllib/widgets
23     *
24  //  It inherits from phpHtmlLib's BaseWidget to be transparently spooled   * Revision 1.2  2003/02/28 04:24:17  joko
25  //  down when rendering (->render!).   * disabled benchmarking
26     * - purged old code
27  //  It uses phpHtmlLib::TreeNav::PearHtmlTreeMenuBridge to access   *
28  //  some fine component libraries from PEAR to get things done.   * Revision 1.1  2003/02/27 16:57:17  joko
29     * + initial commit, inherits from BaseWidget, uses pear-bridge
30  //  Please also visit its sister class phpHtmlLib::TreeNav::SelectNav,   *
31  //  which displays a nested tree flattened into a html-form "select" element.   *
32     */
33    
34    /**
35     * DHTMLTreeNav
36     *
37     * This is a phpHtmlLib extension class implementing nested trees.
38     *
39     * It inherits from phpHtmlLib's BaseWidget to be transparently spooled
40     * down when rendering (->render!).
41     *
42     * It uses phpHtmlLib::TreeNav::PearHtmlTreeMenuBridge to access
43     * some fine component libraries from PEAR to get things done.
44     *
45     * Please also visit its sister class phpHtmlLib::TreeNav::SelectNav,
46     * which displays a nested tree flattened into a html-form "select" element.
47     *
48     *
49     * @author Andreas Motl <andreas.motl@ilo.de>
50     * @copyright (c) 2003 - All Rights reserved.
51     * @license GNU LGPL (GNU Lesser General Public License)
52     *
53     * @link http://www.netfrag.org/~joko/
54     * @link http://www.gnu.org/licenses/lgpl.txt
55     *
56     * @package org.netfrag.patches
57     * @subpackage phphtmllib::widgets
58     * @name DHTMLTreeNav
59     *
60     * @link http://cvs.netfrag.org/php/libs/org.netfrag.patches
61     *
62     */
63  class DHTMLTreeNav extends BaseWidget {  class DHTMLTreeNav extends BaseWidget {
64    
65    var $pearbridge;    var $pearbridge;
# Line 46  class DHTMLTreeNav extends BaseWidget { Line 75  class DHTMLTreeNav extends BaseWidget {
75            
76      $args[payload] = &$payload;      $args[payload] = &$payload;
77      $args[type] = 'DHTML';      $args[type] = 'DHTML';
78        
79        // NEW [2003-04-20]: use HTML_TreeMenu's builtin PEAR::Tree structure handler
80        $args[converter] = 'builtin.kriesing';
81        
82      $this->pearbridge = new TreeNav_PearHtmlTreeMenuBridge(&$args);      $this->pearbridge = new TreeNav_PearHtmlTreeMenuBridge(&$args);
83      $this->menuobject = $this->pearbridge->getMenuObject();      $this->menuobject = $this->pearbridge->getMenuObject();
84    
85      // initialize output the phpHtmlLib way      // initialize output the phpHtmlLib way
86        $this->_init_output();      $this->_init_output();
87    
88    }    }
89    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed