/[cvs]/nfo/php/libs/org.netfrag.app/WebExplorer/Module/NavigationTree.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/WebExplorer/Module/NavigationTree.php

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

revision 1.1 by jonen, Sat Apr 19 16:18:16 2003 UTC revision 1.2 by jonen, Wed Aug 11 13:08:19 2004 UTC
# Line 4  Line 4 
4  ##    $Id$  ##    $Id$
5  ##    -----------------------------------------------------------------------------  ##    -----------------------------------------------------------------------------
6  ##    $Log$  ##    $Log$
7    ##    Revision 1.2  2004/08/11 13:08:19  jonen
8    ##    bugfix related to (joko's) changes at Data::Lift
9    ##
10  ##    Revision 1.1  2003/04/19 16:18:16  jonen  ##    Revision 1.1  2003/04/19 16:18:16  jonen
11  ##    initial commit  ##    initial commit
12  ##  ##
# Line 14  Line 17 
17    
18  loadModule('WebExplorer::Module::AbstractGUIModule');  loadModule('WebExplorer::Module::AbstractGUIModule');
19    
20    require_once('Tree/Tree.php');
21    
22  class WebExplorer_Module_NavigationTree extends WebExplorer_Module_AbstractGUIModule {  class WebExplorer_Module_NavigationTree extends WebExplorer_Module_AbstractGUIModule {
23    
24    var $source;    var $source;
# Line 91  class WebExplorer_Module_NavigationTree Line 96  class WebExplorer_Module_NavigationTree
96            
97      //return;      //return;
98            
99      // convert (speak "lift") data from nested arrays/hashes to a PEAR::Tree object        // V1
100        $lift = mkObject('Data::Lift', $this->topictree, array( metatype => 'tree' ) );        // convert (speak "lift") data from nested arrays/hashes to a PEAR::Tree object
101        $this->treeobject = $lift->to('PEAR::Tree');        //$lift = mkObject('Data::Lift', $this->topictree, array( metatype => 'tree' ) );
102          //$this->treeobject = $lift->to('PEAR::Tree');
103    
104          // V2
105          // have tree in-memory only
106          $this->treeobject = Tree::setup('Memory_Array', $this->topictree);
107          // read tree from database
108          //$memTree = Tree::setup( 'Memory_DBnested' , 'mysql://root@localhost/test', array('table'=>'Tree_Nested') );
109          $this->treeobject->setup();
110    
111        //print "treeobject: " . Dumper($this->treeobject) . "<br/>";        //print "treeobject: " . Dumper($this->treeobject) . "<br/>";
112    
113    
114      // trace      // trace
115      //print Dumper($initial_locator);      //print Dumper($initial_locator);
116      //print Dumper($this->_args);      //print Dumper($this->_args);

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