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

Class: HTML_TreeMenu

Source Location: /HTML_TreeMenu-1.1.2/TreeMenu.php

Class HTML_TreeMenu

Class Overview

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.

Located in /HTML_TreeMenu-1.1.2/TreeMenu.php [line 67]



		
				Author(s):
		
		
		API Tags:
Access:  public

Information Tags:

Properties

Methods

[ Top ]
Property Summary
array   $items   Indexed array of subnodes

[ Top ]
Method Summary
HTML_TreeMenu   HTML_TreeMenu()   Constructor
object Returns   &addItem()   This function adds an item to the the tree.

[ Top ]
Properties
array   $items [line 73]

Indexed array of subnodes


[ Top ]
Methods
Constructor HTML_TreeMenu  [line 80]

  HTML_TreeMenu HTML_TreeMenu( )

Constructor


API Tags:
Access:  public


[ Top ]
addItem  [line 94]

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

This function adds an item to the the tree.

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

API Tags:
Return:  a reference to the new node inside the tree.
Access:  public


[ Top ]

Documentation generated on Tue, 24 Oct 2006 09:26:33 -0500 by phpDocumentor 1.3.1