PHP Classes

Tree: Simple Tree Class

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 8,129 All time: 212 This week: 524Down
Version License Categories
treeclass 1.0.0BSD LicenseGraphics
Description 

Author

It is a very simple tree class, useful to display hierarchical data, such as an Organizational Chart

Picture of stefano dolzi
Name: stefano dolzi <contact>
Classes: 3 packages by
Country: Italy Italy
Age: ???
All time rank: 1895 in Italy Italy
Week rank: 185 Up5 in Italy Italy Equal
Innovation award
Innovation award
Nominee: 2x

Details

This is my first PHP class, so please do not be too hard! In addition, I know something similar already exists in this repository, but I think that my class can be useful too, at least to examine the way I built it. This is a very simple Tree class, it does not allow to navigate (it is not a kind of Windows Explorer Tree!). It can be useful to represent every kind of hierarchical data (i.e. an Organizational Chart). The only limit I have not been able to eliminate is that every node name must be unique, then it seems to work quite well. If you do not like the way the Tree is displayed, you can easily change it by altering the last piece of code of the drawTree() method. You can use this class or alter it. If you extend it or if you find any error, please contact me. Thank you for your attention. Bye :o)

  Files folder image Files  
File Role Description
Accessible without login Plain text file GeoExample.php Example Example n.2
Accessible without login Plain text file OrgExample.php Example Example n.1
Accessible without login Plain text file Readme.txt Doc. Read me
Accessible without login HTML file Tree.html Doc. help class
Plain text file TreeClass.php Class Create a hierarchical tree

 Version Control Unique User Downloads Download Rankings  
 0%
Total:8,129
This week:0
All time:212
This week:524Down
 User Ratings  
 
 All time
Utility:63%StarStarStarStar
Consistency:45%StarStarStar
Documentation:59%StarStarStar
Examples:63%StarStarStarStar
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:2940