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

Class: HTML_TreeMenu

Source Location: /HTML_TreeMenu-1.1.2/TreeMenu.php

Class Overview


HTML_TreeMenu Class


Author(s):

Variables

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.




Tags:

author:  Harald Radi <harald.radi@nme.at>
author:  Richard Heyes <richard@php.net>
access:  public


[ Top ]


Class Variables

$items =

[line 73]

Indexed array of subnodes


Type:  array


[ Top ]



Class Methods


constructor HTML_TreeMenu [line 80]

HTML_TreeMenu HTML_TreeMenu( )

Constructor



Tags:

access:  public


[ Top ]

method addItem [line 94]

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

This function adds an item to the the tree.



Tags:

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 ]

    Поддержать сайт на родительском проекте КГБ