JFolder::listFolderTree
Lists folder in format suitable for tree display.
Signature
public function listFolderTree(string
$path,
[string
$filter = 3,
[integer
$maxLevel = 3,
[integer
$level = 0,
[integer
$parent = 0]]]] )
Parameters
-
$path
- The path of the folder to read.
-
$filter
- A filter for folder names.
-
$maxLevel
- The maximum number of levels to recursively read, defaults to three.
-
$level
- The current level, optional.
-
$parent
- Unique identifier of the parent folder, if any.
Returns
- array
- Folders in the given folder.