HTML_TreeMenu
[ class tree: HTML_TreeMenu ] [ index: HTML_TreeMenu ] [ all elements ]

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 Mon, 11 Mar 2019 15:50:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.