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.
Template:Description:JPath::clean [Edit Descripton]
Since[edit]
Synopsis[edit]
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[edit]
string The cleaned path
Defined in[edit]
libraries/joomla/filesystem/path.php (line 164)
- see source code in BitBucket
Referenced by[edit]
- 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]
Examples[edit]
<CodeExamplesForm />