API17:JPath::clean
From Joomla! Documentation
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]
public static function 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 on line 167 of libraries/joomla/filesystem/path.php
- Since
- 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
-
JPath::clean source code on BitBucket
-
Class JPath
-
Subpackage Filesystem
- Other versions of JPath::clean
SeeAlso:JPath::clean [Edit See Also]
User contributed notes
<CodeExamplesForm />
