DNEnvironment::array_to_viewabledata
Helper function to convert a multi-dimensional array (associative or indexed) to an {@link ArrayList} or {@link ArrayData} object structure, so that values can be used in templates.
Signature
public function array_to_viewabledata(array
$array )
Parameters
$array
— array- The (single- or multi-dimensional) array to convert
Returns
- Either an {@link ArrayList} or {@link ArrayData} object, or the original item ($array) if $array
isn't an array.