API17

JFolder::listFolderTree

From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JFolder::listFolderTree[edit]

Description[edit]

Lists folder in format suitable for tree display.


public static function listFolderTree (
        $path
        $filter
        $maxLevel=3
        $level=0
        $parent=0
)
Parameter Type Default Description
$path string The path of the folder to read.
$filter string A filter for folder names.
$maxLevel integer 3 The maximum number of levels to recursively read, defaults to three.
$level integer 0 The current level, optional.
$parent integer 0 Unique identifier of the parent folder, if any.
  • Returns array Folders in the given folder.
  • Defined on line 609 of libraries/joomla/filesystem/folder.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]