API17:JPath::clean
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 35: | Line 35: | ||
string The cleaned path | string The cleaned path | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/filesystem/path.php | + | libraries/joomla/filesystem/path.php (line 164) |
| + | * see source code in [[jplatform:filesystem/path.php#cl-164|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
| − | * [[JArchiveZip | + | * [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]] |
| − | * [[JElementModuleLayouts | + | * [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] |
| − | * [[JElementComponentLayouts | + | * [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] |
| − | * [[JHtml | + | * [[JHtml::addIncludePath/11.1|JHtml::addIncludePath]] |
| − | * [[JCacheStorage | + | * [[JCacheStorage::addIncludePath/11.1|JCacheStorage::addIncludePath]] |
| − | * [[JCache | + | * [[JCache::addIncludePath/11.1|JCache::addIncludePath]] |
| − | * [[JModel | + | * [[JModel::addIncludePath/11.1|JModel::addIncludePath]] |
| − | * [[JCacheController | + | * [[JCacheController::addIncludePath/11.1|JCacheController::addIncludePath]] |
* [[check/11.1|check]] | * [[check/11.1|check]] | ||
| − | * [[JInstallerHelper | + | * [[JInstallerHelper::cleanupInstall/11.1|JInstallerHelper::cleanupInstall]] |
| − | * [[JFolder | + | * [[JFolder::copy/11.1|JFolder::copy]] |
| − | * [[JFile | + | * [[JFile::copy/11.1|JFile::copy]] |
| − | * [[JInstaller | + | * [[JInstaller::copyFiles/11.1|JInstaller::copyFiles]] |
| − | * [[JFolder | + | * [[JFolder::create/11.1|JFolder::create]] |
| − | * [[JFolder | + | * [[JFolder::delete/11.1|JFolder::delete]] |
| − | * [[JFile | + | * [[JFile::delete/11.1|JFile::delete]] |
| − | * [[JInstallerComponent | + | * [[JInstallerComponent::discover_install/11.1|JInstallerComponent::discover_install]] |
| − | * [[JFolder | + | * [[JFolder::exists/11.1|JFolder::exists]] |
| − | * [[JFile | + | * [[JFile::exists/11.1|JFile::exists]] |
| − | * [[JArchiveTar | + | * [[JArchiveTar::extract/11.1|JArchiveTar::extract]] |
| − | * [[JArchive | + | * [[JArchive::extract/11.1|JArchive::extract]] |
| − | * [[JFolder | + | * [[JFolder::files/11.1|JFolder::files]] |
| − | * [[JFolder | + | * [[JFolder::folders/11.1|JFolder::folders]] |
| − | * [[JFormFieldModuleLayout | + | * [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] |
| − | * [[JFormFieldComponentLayout | + | * [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]] |
* [[getPermissions/11.1|getPermissions]] | * [[getPermissions/11.1|getPermissions]] | ||
| − | * [[JInstallerComponent | + | * [[JInstallerComponent::install/11.1|JInstallerComponent::install]] |
| − | * [[JInstallerFile | + | * [[JInstallerFile::install/11.1|JInstallerFile::install]] |
| − | * [[JFolder | + | * [[JFolder::listFolderTree/11.1|JFolder::listFolderTree]] |
| − | * [[JFolder | + | * [[JFolder::move/11.1|JFolder::move]] |
| − | * [[JFile | + | * [[JFile::move/11.1|JFile::move]] |
| − | * [[JInstaller | + | * [[JInstaller::parseMedia/11.1|JInstaller::parseMedia]] |
| − | * [[JInstallerComponent | + | * [[JInstallerComponent::uninstall/11.1|JInstallerComponent::uninstall]] |
| − | * [[JInstallerFile | + | * [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]] |
| − | * [[JInstallerHelper | + | * [[JInstallerHelper::unpack/11.1|JInstallerHelper::unpack]] |
| − | * [[JInstallerComponent | + | * [[JInstallerComponent::update/11.1|JInstallerComponent::update]] |
| − | * [[JFile | + | * [[JFile::upload/11.1|JFile::upload]] |
| − | * [[JFile | + | * [[JFile::write/11.1|JFile::write]] |
===See also=== | ===See also=== | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 21:04, 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.
JPath::clean
Description
Function to strip additional / or \ in a path name.
Description:JPath::clean [Edit Descripton]
Since
Synopsis
public static JPath::clean ($path, $ds=DIRECTORY_SEPARATOR)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $path | string | The path to clean | |
| $ds | string | DIRECTORY_SEPARATOR | Directory separator (optional) |
Returns
string The cleaned path
Defined in
libraries/joomla/filesystem/path.php (line 164)
- see source code in BitBucket
Referenced by
- JArchiveZip::_extract
- JElementModuleLayouts::_getOptions
- JElementComponentLayouts::_getOptions
- JHtml::addIncludePath
- JCacheStorage::addIncludePath
- JCache::addIncludePath
- JModel::addIncludePath
- JCacheController::addIncludePath
- check
- JInstallerHelper::cleanupInstall
- JFolder::copy
- JFile::copy
- JInstaller::copyFiles
- JFolder::create
- JFolder::delete
- JFile::delete
- JInstallerComponent::discover_install
- JFolder::exists
- JFile::exists
- JArchiveTar::extract
- JArchive::extract
- JFolder::files
- JFolder::folders
- JFormFieldModuleLayout::getInput
- JFormFieldComponentLayout::getInput
- getPermissions
- JInstallerComponent::install
- JInstallerFile::install
- JFolder::listFolderTree
- JFolder::move
- JFile::move
- JInstaller::parseMedia
- JInstallerComponent::uninstall
- JInstallerFile::uninstall
- JInstallerHelper::unpack
- JInstallerComponent::update
- JFile::upload
- JFile::write
See also
Examples
<CodeExamplesForm />
