Walker
Package:
Summary:
Convert an array into hierarchic data
Groups:
Author:
Description:
This class can be used to convert an array into hierarchic data.
It can traverse an array of elements which may be objects or arrays that have entries that define an identifier of the entry and the identifier of the parent entry.
The class calls a certain class function to process entries grouped by parent entry identifier.
That function returns a string that is concatenated to form the whole hierarchy string representation.
Sub-classes my redefine the entry processing function to generate a string in a hierarchic format.
It can traverse an array of elements which may be objects or arrays that have entries that define an identifier of the entry and the identifier of the parent entry.
The class calls a certain class function to process entries grouped by parent entry identifier.
That function returns a string that is concatenated to form the whole hierarchy string representation.
Sub-classes my redefine the entry processing function to generate a string in a hierarchic format.
Comments are closed.