Méthode | Description | |
---|---|---|
__construct ( boolean $moveUp = false ) | ListToTreeConverter constructor. | |
convert ( array $data ) : array | generate a tree of the given data with the path property. |
Méthode | Description | |
---|---|---|
explodeTree ( array $array, string $delimiter = '_', boolean $baseval = false ) : array | Explode any single-dimensional array into a full blown tree structure, based on the delimiters found in it's keys. | |
toArray ( $tree ) |
public __construct ( boolean $moveUp = false ) | ||
$moveUp | boolean |