API17:JFolder::files
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 55: | Line 55: | ||
array Files in the given folder. | array Files in the given folder. | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/filesystem/folder.php | + | libraries/joomla/filesystem/folder.php (line 456) |
| + | * see source code in [[jplatform:filesystem/folder.php#cl-456|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
| − | * [[JElementModuleLayouts | + | * [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] |
| − | * [[JElementComponentLayouts | + | * [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] |
| − | * [[JInstallerHelper | + | * [[JInstallerHelper::detectType/11.1|JInstallerHelper::detectType]] |
| − | * [[JInstallerPlugin | + | * [[JInstallerPlugin::discover/11.1|JInstallerPlugin::discover]] |
| − | * [[JInstallerLibrary | + | * [[JInstallerLibrary::discover/11.1|JInstallerLibrary::discover]] |
| − | * [[JInstaller | + | * [[JInstaller::findManifest/11.1|JInstaller::findManifest]] |
| − | * [[JCacheStorageCachelite | + | * [[JCacheStorageCachelite::getAll/11.1|JCacheStorageCachelite::getAll]] |
| − | * [[JDatabase | + | * [[JDatabase::getConnectors/11.1|JDatabase::getConnectors]] |
| − | * [[JFormFieldModuleLayout | + | * [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] |
| − | * [[JFormFieldComponentLayout | + | * [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]] |
| − | * [[JFilesystemHelper | + | * [[JFilesystemHelper::getJStreams/11.1|JFilesystemHelper::getJStreams]] |
| − | * [[JFormFieldFileList | + | * [[JFormFieldFileList::getOptions/11.1|JFormFieldFileList::getOptions]] |
| − | * [[JSession | + | * [[JSession::getStores/11.1|JSession::getStores]] |
| − | * [[JCache | + | * [[JCache::getStores/11.1|JCache::getStores]] |
| − | * [[JHtmlList | + | * [[JHtmlList::images/11.1|JHtmlList::images]] |
| − | * [[JAdapter | + | * [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]] |
| − | * [[JInstaller | + | * [[JInstaller::parseSchemaUpdates/11.1|JInstaller::parseSchemaUpdates]] |
| − | * [[JLanguage | + | * [[JLanguage::parseXMLLanguageFiles/11.1|JLanguage::parseXMLLanguageFiles]] |
| − | * [[JInstaller | + | * [[JInstaller::setSchemaVersion/11.1|JInstaller::setSchemaVersion]] |
| − | * [[JInstallerPlugin | + | * [[JInstallerPlugin::uninstall/11.1|JInstallerPlugin::uninstall]] |
| − | * [[JInstallerLibrary | + | * [[JInstallerLibrary::uninstall/11.1|JInstallerLibrary::uninstall]] |
| − | * [[JInstallerFile | + | * [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]] |
| − | * [[JInstallerHelper | + | * [[JInstallerHelper::unpack/11.1|JInstallerHelper::unpack]] |
===See also=== | ===See also=== | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 20:32, 23 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JFolder::files
Description
Utility function to read the files in a folder.
Description:JFolder::files [Edit Descripton]
Since
Synopsis
public static JFolder::files ($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 file 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 file. |
| $exclude | array | array('.svn', 'CVS','.DS_Store','__MACOSX') | Array with names of files which should not be shown in the result. |
| $excludefilter | array | array('^\..*','.*~') | Array of filter to exclude |
Returns
array Files in the given folder.
Defined in
libraries/joomla/filesystem/folder.php (line 456)
- see source code in BitBucket
Referenced by
- JElementModuleLayouts::_getOptions
- JElementComponentLayouts::_getOptions
- JInstallerHelper::detectType
- JInstallerPlugin::discover
- JInstallerLibrary::discover
- JInstaller::findManifest
- JCacheStorageCachelite::getAll
- JDatabase::getConnectors
- JFormFieldModuleLayout::getInput
- JFormFieldComponentLayout::getInput
- JFilesystemHelper::getJStreams
- JFormFieldFileList::getOptions
- JSession::getStores
- JCache::getStores
- JHtmlList::images
- JAdapter::loadAllAdapters
- JInstaller::parseSchemaUpdates
- JLanguage::parseXMLLanguageFiles
- JInstaller::setSchemaVersion
- JInstallerPlugin::uninstall
- JInstallerLibrary::uninstall
- JInstallerFile::uninstall
- JInstallerHelper::unpack
See also
Examples
<CodeExamplesForm />
