Difference between revisions of "JPath::clean"
From Joomla! Documentation
(Bulk upload by Doxiki2) |
m (moving preparation) |
||
(4 intermediate revisions by 2 users not shown) | |||
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''' |
− | + | ** [[API17:JArchiveZip::_extract|JArchiveZip::_extract]] | |
− | * [[JArchiveZip | + | ** [[API17:JElementModuleLayouts::_getOptions|JElementModuleLayouts::_getOptions]] |
− | * [[JElementModuleLayouts | + | ** [[API17:JElementComponentLayouts::_getOptions|JElementComponentLayouts::_getOptions]] |
− | * [[JElementComponentLayouts | + | ** [[API17:JHtml::addIncludePath|JHtml::addIncludePath]] |
− | * [[JHtml | + | ** [[API17:JCacheStorage::addIncludePath|JCacheStorage::addIncludePath]] |
− | * [[JCacheStorage | + | ** [[API17:JCache::addIncludePath|JCache::addIncludePath]] |
− | * [[JCache | + | ** [[API17:JModel::addIncludePath|JModel::addIncludePath]] |
− | * [[JModel | + | ** [[API17:JCacheController::addIncludePath|JCacheController::addIncludePath]] |
− | * [[JCacheController | + | ** [[check|check]] |
− | * [[check | + | ** [[API17:JInstallerHelper::cleanupInstall|JInstallerHelper::cleanupInstall]] |
− | * [[JInstallerHelper | + | ** [[API17:JFolder::copy|JFolder::copy]] |
− | * [[JFolder | + | ** [[API17:JFile::copy|JFile::copy]] |
− | * [[JFile | + | ** [[API17:JInstaller::copyFiles|JInstaller::copyFiles]] |
− | * [[JInstaller | + | ** [[API17:JFolder::create|JFolder::create]] |
− | * [[JFolder | + | ** [[API17:JFolder::delete|JFolder::delete]] |
− | * [[JFolder | + | ** [[API17:JFile::delete|JFile::delete]] |
− | * [[JFile | + | ** [[API17:JInstallerComponent::discover_install|JInstallerComponent::discover_install]] |
− | * [[JInstallerComponent | + | ** [[API17:JFolder::exists|JFolder::exists]] |
− | * [[JFolder | + | ** [[API17:JFile::exists|JFile::exists]] |
− | * [[JFile | + | ** [[API17:JArchiveTar::extract|JArchiveTar::extract]] |
− | * [[JArchiveTar | + | ** [[API17:JArchive::extract|JArchive::extract]] |
− | * [[JArchive | + | ** [[API17:JFolder::files|JFolder::files]] |
− | * [[JFolder | + | ** [[API17:JFolder::folders|JFolder::folders]] |
− | * [[JFolder | + | ** [[API17:JFormFieldModuleLayout::getInput|JFormFieldModuleLayout::getInput]] |
− | * [[JFormFieldModuleLayout | + | ** [[API17:JFormFieldComponentLayout::getInput|JFormFieldComponentLayout::getInput]] |
− | * [[JFormFieldComponentLayout | + | ** [[getPermissions|getPermissions]] |
− | * [[getPermissions | + | ** [[API17:JInstallerComponent::install|JInstallerComponent::install]] |
− | * [[JInstallerComponent | + | ** [[API17:JInstallerFile::install|JInstallerFile::install]] |
− | * [[JInstallerFile | + | ** [[API17:JFolder::listFolderTree|JFolder::listFolderTree]] |
− | * [[JFolder | + | ** [[API17:JFolder::move|JFolder::move]] |
− | * [[JFolder | + | ** [[API17:JFile::move|JFile::move]] |
− | * [[JFile | + | ** [[API17:JInstaller::parseMedia|JInstaller::parseMedia]] |
− | * [[JInstaller | + | ** [[API17:JInstallerComponent::uninstall|JInstallerComponent::uninstall]] |
− | * [[JInstallerComponent | + | ** [[API17:JInstallerFile::uninstall|JInstallerFile::uninstall]] |
− | * [[JInstallerFile | + | ** [[API17:JInstallerHelper::unpack|JInstallerHelper::unpack]] |
− | * [[JInstallerHelper | + | ** [[API17:JInstallerComponent::update|JInstallerComponent::update]] |
− | * [[JInstallerComponent | + | ** [[API17:JFile::upload|JFile::upload]] |
− | * [[JFile | + | ** [[API17:JFile::write|JFile::write]] |
− | * [[JFile | ||
===See also=== | ===See also=== | ||
+ | * {{JVer|11.1}} '''JPath::clean source code''' on [[jplatform:filesystem/path.php#cl-159|BitBucket]] | ||
+ | * {{JVer|11.1}} Class [[API17:JPath|JPath]] | ||
+ | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]] | ||
+ | * [[API17: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 90: | Line 91: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
+ | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Revision as of 21:19, 11 May 2013
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]
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
Template:SeeAlso:JPath::clean [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />