Login   Register  
PHP Classes
elePHPant
Icontem

File: README.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrea Del Santo  >  MG's TreeView  >  README.txt  >  Download  
File: README.txt
Role: Documentation
Content type: text/plain
Description: Read me with documentation
Class: MG's TreeView
Display list of elements of nested menus
Author: By
Last change:
Date: 2 years ago
Size: 412 bytes
 

Contents

Class file image Download
To use the Tree View Control, just instance a new object with a string that
stands for the title:

$tree = new TreeView("The Title");

or initialize with an array:

$array = array("Node 1", array("Subnode 1", "Subnode 2"), "Node 2");
$tree = new TreeView("TheTitle");

to add later a node, just

$tree->AddNode($array_with_node);

to remove by querying the nodelist:

$tree->RemoveNode("Node 1");