I have a flat array of objects like this
array(obj1, obj2, ob3)
Each object contains a string reference to its own unique name and its parent object which is either also in the array or else null
I want to output these names in the correct hierarchy using the zend htmllist helper.
Using the accepted answer at the following link gets me an associative array with the correct hierarchy:
Convert a series of parent-child relationships into a hierarchical tree?
But I cannot use this in the htmllist helper as there are array keys present like 'children' for example