| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of Arthur Borisow | > | Walker | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||
| Groups | ||
| Algorithms | Numerical and statistical algorithms | View top rated classes | |
| Data types | Modeling and manipulating data types | View top rated classes |
| Innovation Award | ||
![]() November 2010 Number 6 Prize: One year subscription to the PDF edition of the JSMag magazine |
Databases are often used to store records of data that form hierarchic trees. Usually there is one field that represents the record identifier and another that represents the identifier of the parent record. If you want to output those data records in an hierarchic format such as XML or JSON, you need to properly traverse the retrieved data records and group them appropriately according to the parent of each record. This class can be used to do exactly data. It takes an array of hierarchic data records eventually retrieved from database and generates the respective serialized representation in XML or JSON format. Manuel Lemos |
| User ratings | ||
| There are not enough user ratings to display for this class. |
| Applications that use this class | ||
| File | Role | Description |
|---|---|---|
| Example | Shows how to use the Walker class | |
| Class | The class to generate hierarchy from arrays |
| Download all files: walker.tar.gz walker.zip |