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 |
## |
## |
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; |
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); |