API17:JPath::clean
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JPath::clean|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JPath::clean|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function clean ( |
| + | $path | ||
| + | $ds=DIRECTORY_SEPARATOR | ||
| + | ) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 32: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string The cleaned path | |
| − | string The cleaned path | + | * '''Defined''' on line 167 of libraries/joomla/filesystem/path.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/filesystem/path.php | + | * '''Referenced by''' |
| − | * | + | ** [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]] |
| − | + | ** [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] | |
| − | * [[JArchiveZip::_extract/11.1|JArchiveZip::_extract]] | + | ** [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] |
| − | * [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] | + | ** [[JHtml::addIncludePath/11.1|JHtml::addIncludePath]] |
| − | * [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] | + | ** [[JCacheStorage::addIncludePath/11.1|JCacheStorage::addIncludePath]] |
| − | * [[JHtml::addIncludePath/11.1|JHtml::addIncludePath]] | + | ** [[JCache::addIncludePath/11.1|JCache::addIncludePath]] |
| − | * [[JCacheStorage::addIncludePath/11.1|JCacheStorage::addIncludePath]] | + | ** [[JModel::addIncludePath/11.1|JModel::addIncludePath]] |
| − | * [[JCache::addIncludePath/11.1|JCache::addIncludePath]] | + | ** [[JCacheController::addIncludePath/11.1|JCacheController::addIncludePath]] |
| − | * [[JModel::addIncludePath/11.1|JModel::addIncludePath]] | + | ** [[check/11.1|check]] |
| − | * [[JCacheController::addIncludePath/11.1|JCacheController::addIncludePath]] | + | ** [[JInstallerHelper::cleanupInstall/11.1|JInstallerHelper::cleanupInstall]] |
| − | * [[check/11.1|check]] | + | ** [[JFolder::copy/11.1|JFolder::copy]] |
| − | * [[JInstallerHelper::cleanupInstall/11.1|JInstallerHelper::cleanupInstall]] | + | ** [[JFile::copy/11.1|JFile::copy]] |
| − | * [[JFolder::copy/11.1|JFolder::copy]] | + | ** [[JInstaller::copyFiles/11.1|JInstaller::copyFiles]] |
| − | * [[JFile::copy/11.1|JFile::copy]] | + | ** [[JFolder::create/11.1|JFolder::create]] |
| − | * [[JInstaller::copyFiles/11.1|JInstaller::copyFiles]] | + | ** [[JFolder::delete/11.1|JFolder::delete]] |
| − | * [[JFolder::create/11.1|JFolder::create]] | + | ** [[JFile::delete/11.1|JFile::delete]] |
| − | * [[JFolder::delete/11.1|JFolder::delete]] | + | ** [[JInstallerComponent::discover_install/11.1|JInstallerComponent::discover_install]] |
| − | * [[JFile::delete/11.1|JFile::delete]] | + | ** [[JFolder::exists/11.1|JFolder::exists]] |
| − | * [[JInstallerComponent::discover_install/11.1|JInstallerComponent::discover_install]] | + | ** [[JFile::exists/11.1|JFile::exists]] |
| − | * [[JFolder::exists/11.1|JFolder::exists]] | + | ** [[JArchiveTar::extract/11.1|JArchiveTar::extract]] |
| − | * [[JFile::exists/11.1|JFile::exists]] | + | ** [[JArchive::extract/11.1|JArchive::extract]] |
| − | * [[JArchiveTar::extract/11.1|JArchiveTar::extract]] | + | ** [[JFolder::files/11.1|JFolder::files]] |
| − | * [[JArchive::extract/11.1|JArchive::extract]] | + | ** [[JFolder::folders/11.1|JFolder::folders]] |
| − | * [[JFolder::files/11.1|JFolder::files]] | + | ** [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] |
| − | * [[JFolder::folders/11.1|JFolder::folders]] | + | ** [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]] |
| − | * [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] | + | ** [[getPermissions/11.1|getPermissions]] |
| − | * [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]] | + | ** [[JInstallerComponent::install/11.1|JInstallerComponent::install]] |
| − | * [[getPermissions/11.1|getPermissions]] | + | ** [[JInstallerFile::install/11.1|JInstallerFile::install]] |
| − | * [[JInstallerComponent::install/11.1|JInstallerComponent::install]] | + | ** [[JFolder::listFolderTree/11.1|JFolder::listFolderTree]] |
| − | * [[JInstallerFile::install/11.1|JInstallerFile::install]] | + | ** [[JFolder::move/11.1|JFolder::move]] |
| − | * [[JFolder::listFolderTree/11.1|JFolder::listFolderTree]] | + | ** [[JFile::move/11.1|JFile::move]] |
| − | * [[JFolder::move/11.1|JFolder::move]] | + | ** [[JInstaller::parseMedia/11.1|JInstaller::parseMedia]] |
| − | * [[JFile::move/11.1|JFile::move]] | + | ** [[JInstallerComponent::uninstall/11.1|JInstallerComponent::uninstall]] |
| − | * [[JInstaller::parseMedia/11.1|JInstaller::parseMedia]] | + | ** [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]] |
| − | * [[JInstallerComponent::uninstall/11.1|JInstallerComponent::uninstall]] | + | ** [[JInstallerHelper::unpack/11.1|JInstallerHelper::unpack]] |
| − | * [[JInstallerFile::uninstall/11.1|JInstallerFile::uninstall]] | + | ** [[JInstallerComponent::update/11.1|JInstallerComponent::update]] |
| − | * [[JInstallerHelper::unpack/11.1|JInstallerHelper::unpack]] | + | ** [[JFile::upload/11.1|JFile::upload]] |
| − | * [[JInstallerComponent::update/11.1|JInstallerComponent::update]] | + | ** [[JFile::write/11.1|JFile::write]] |
| − | * [[JFile::upload/11.1|JFile::upload]] | + | |
| − | * [[JFile::write/11.1|JFile::write]] | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JPath::clean source code''' on [[jplatform:filesystem/path.php#cl-159|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JPath/11.1|JPath]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]] | ||
| + | * [[JPath::clean|Other versions of JPath::clean]] | ||
| + | {{SeeAlso:JPath::clean}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JPath::clean|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JPath::clean|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 91: | Line 91: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JPath]][[Category:JPath::clean]]</noinclude> | <noinclude>[[Category:JPath]][[Category:JPath::clean]]</noinclude> | ||
Revision as of 21:29, 27 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]
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 />
