Login   Register  
PHP Classes
elePHPant
Icontem

Class: Hierachical Data Object

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dave  >  Hierachical Data Object  >  Download .tar.gz .zip  >  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
Related classes: , , , , , ,
Version: -
PHP version: -
License: BSD License
All time users: 1467 users
All time rank: 2215
Week users: 0 users
Week rank: 1753
Picture of Dave
Author: Dave <e-mail contact>
Packages: 6 Browse this author's classes Browse this author's classes
Country: South Africa South Africa - PHP jobs in South Africa
Age: 33
All time rank: 1423 in South Africa South Africa
Week rank: 601 Down5 in South Africa South Africa Down
Innovation award
Innovation award
Nominee: 2x


  Detailed description  
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.

 

  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

  Rate classes User ratings   Dependencies   Applications   Files Files  

  Innovation Award  
PHP Programming Innovation award nominee
September 2005
Number 5
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
Plain text file append.xml Data data to use with the example script, for showing off the append_xml function
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
HTML file hdobj_doc.html Doc. Class documentation
Plain text file log.php Class logger base class
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.