HTML_TreeMenu
[ class tree: HTML_TreeMenu ] [ index: HTML_TreeMenu ] [ all elements ]
Packages:
Converters
Cpdf
HTML_TreeMenu
phpDocumentor
Smarty
XML_Beautifier


Classes:
DirNode
HTML_TreeMenu
HTML_TreeMenu_DHTML
HTML_TreeMenu_Listbox
HTML_TreeMenu_Presentation
HTML_TreeNode
Files:
TreeMenu.php

Class: HTML_TreeMenu

Source Location: /PhpDocumentor-1.5.0a1/HTML_TreeMenu-1.1.2/TreeMenu.php

Class Overview


HTML_TreeMenu Class


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 67]
HTML_TreeMenu Class

A simple couple of PHP classes and some not so simple Jabbascript which produces a tree menu. In IE this menu is dynamic, with branches being collapsable. In IE5+ the status of the collapsed/open branches persists across page refreshes.In any other browser the tree is static. Code is based on work of Harald Radi.

Usage.

After installing the package, copy the example php script to your servers document root. Also place the TreeMenu.js and the images folder in the same place. Running the script should then produce the tree.

Thanks go to Chip Chapin (http://www.chipchapin.com) for many excellent ideas and improvements.



[ Top ]


Class Variables

$items =

[line 73]

Indexed array of subnodes

Type: array


[ Top ]



Method Detail

HTML_TreeMenu (Constructor) [line 80]

HTML_TreeMenu HTML_TreeMenu( )

Constructor
  • Access: public

[ Top ]

addItem [line 94]

object Returns &addItem( &$node, object $node)

This function adds an item to the the tree.
  • Return: a reference to the new node inside the tree.
  • Access: public

Parameters:

object $node — The node to add. This object should be a HTML_TreeNode object.
&$node

[ Top ]


Documentation generated on 2019年3月11日 15:50:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.

AltStyle によって変換されたページ (->オリジナル) /