JPath::clean
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.
JPath::clean[edit]
Description[edit]
Function to strip additional / or \ in a path name.
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[edit]
- JPath::clean source code on BitBucket
- Class JPath
- Subpackage Filesystem
- Other versions of JPath::clean
User contributed notes[edit]
Code Examples[edit]