HTML_TreeMenu nodeOptions
| From: | Verona Busch | Date: | Sat, 31 Jul 2004 10:52:10 +0000 |
| Subject: | HTML_TreeMenu nodeOptions | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-32361@lists.php.net to get a copy of this message | ||
Hallo,
i'm testing the PEAR Tree class v 1.4 from Wolfram Kriesing and try to output it through PEAR HTML_TreeMenu class v 1.18 from Richard Heyes.
Richard offers a static function called "createFromStructure". Apart from the nodeOptions it works fine as well.
Why is the $nodeOptions for Kriesing Trees missing?
$nodeOptions = array(
'text' => '',
'link' => $_SERVER['PHP_SELF'],
'icon' => 'folder.gif',
'expandedIcon' => 'openfoldericon.png',
'class' => '',
'expanded' => false,
'linkTarget' => '_self',
'isDynamic' => 'true',
'ensureVisible' => '',
);
$options = array(
'structure' => $tree,
'type' => 'kriesing',
'nodeOptions' => $nodeOptions
);
$menu = &HTML_TreeMenu::createFromStructure($options);
I pretty sure it will work on a Heyes Tree, but Richard himself writes, not to install both the Kriesing Tree and his Tree class.
Could anybody tell me where are the main differences between those two classes? And is there a way to deal with nodeOptions for a Kriesing Tree?
Thanks Verona