Login   Register  
PHP Classes
elePHPant
Icontem

Hierachical Data Object

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Dave
Name: Dave <e-mail contact>
Packages: 6 Browse all classes by Dave Browse all classes by
Country: South Africa South Africa - PHP jobs in South Africa
Age: 35
All time rank: 1493 in South Africa South Africa
Week rank: 417 Down3 in South Africa South Africa Equal
Innovation award
Innovation award
Nominee: 2x


  Detailed description   Download .zip .tar.gz  
This class can be used to create and manipulate hierachical objects that can be stored and retrieved from XML documents.

The class provides means to define an object and their property values, as well to add children object and so dynamically build an hierarchy of objects.

The class can generate XML documents that represent the hierarchy defined by an object and its children objects.

The class constructor allows passing XML data from which it is read the definition of its properties and eventual children objects.

  Classes of Dave  >  Hierachical Data Object  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Hierachical Data Object
Base name: hdobj
Description: Store and retrieve hierarchical data in XML
Version: -
PHP version: -
License: BSD License
All time users: 1501 users
All time rank: 2300
Week users: 2 users
Week rank: 1359 Up
 
  Groups   Rate classes User ratings   Dependencies   Applications   Files Files  

  Groups  
Group folder image XML XML parsing and generation View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
September 2005
Number 5

Prize: One downloadable copy of Roadsend PHP Compiler
XML documents can be seen as an hierarchic data structure defined by a set of nested tags and data.

This class implements an abstraction that allows creating and accessing XML documents as an hierarchy of objects. The object variables are mapped to XML tag names and variable values to XML tag data. The object variables can be set or updated to change the XML document contents.

Regenerating an updated XML document is a matter of calling a function to generate XML tags starting from the root object of the hierarchy. Loading a new XML document can be done passing the XML data to the class constructor.

This object oriented approach makes it simpler to create and update XML documents of any complexity.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Packages needed by this class  
Class Dependency Why it is needed
DOMIT XML parser
Conditional
for the xml transport process into and out of the HDObj

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file append.xml Data data to use with the example script, for showing off the append_xml function
Accessible without login Plain text file data.xml Data data to use with the example script test_hdobj.php
Plain text file hdobj.php Class HDObject class file
Accessible without login HTML file hdobj_doc.html Doc. Class documentation
Plain text file log.php Class logger base class
Accessible without login Plain text file test_hdobj.php Example example usage script

Download all files: hdobj.tar.gz hdobj.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.