API17

JFolder::folders

From Joomla! Documentation

Revision as of 18:33, 20 April 2011 by Doxiki2 (talk | contribs) (Bulk upload by Doxiki2)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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::folders[edit]

Description[edit]

Utility function to read the folders in a folder.

Template:Description:JFolder::folders [Edit Descripton]

Since[edit]

Joomla 11.1

Synopsis[edit]

public static JFolder::folders ($path, $filter= '.', $recurse=false, $full=false, $exclude=array('.svn', 'CVS','.DS_Store','__MACOSX'), $excludefilter=array('^\..*'))
Parameter Type Default Description
$path string The path of the folder to read.
$filter string '.' A filter for folder names.
$recurse mixed false True to recursively search into sub-folders, or an integer to specify the maximum depth.
$full boolean false True to return the full path to the folders.
$exclude array array('.svn', 'CVS','.DS_Store','__MACOSX') Array with names of folders which should not be shown in the result.
$excludefilter array array('^\..*') Array with regular expressions matching folders which should not be shown in the result.

Returns[edit]

array Folders in the given folder.

Defined in[edit]

libraries/joomla/filesystem/folder.php

Referenced by[edit]

See also[edit]

[Edit See Also]

Template:SeeAlso:JFolder::folders

Examples[edit]

<CodeExamplesForm />