API17:JFile::stripExt
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JFile::stripExt|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JFile::stripExt|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function stripExt ($file) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' string The file name without the extension | |
| − | string The file name without the extension | + | * '''Defined''' on line 47 of libraries/joomla/filesystem/file.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/filesystem/file.php | + | * '''Referenced by''' |
| − | * | + | ** [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] |
| − | + | ** [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] | |
| − | * [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]] | + | ** [[JInstallerPlugin::discover/11.1|JInstallerPlugin::discover]] |
| − | * [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]] | + | ** [[JInstallerLibrary::discover/11.1|JInstallerLibrary::discover]] |
| − | * [[JInstallerPlugin::discover/11.1|JInstallerPlugin::discover]] | + | ** [[JArchive::extract/11.1|JArchive::extract]] |
| − | * [[JInstallerLibrary::discover/11.1|JInstallerLibrary::discover]] | + | ** [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] |
| − | * [[JArchive::extract/11.1|JArchive::extract]] | + | ** [[JFormFieldFileList::getOptions/11.1|JFormFieldFileList::getOptions]] |
| − | * [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]] | + | ** [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]] |
| − | * [[JFormFieldFileList::getOptions/11.1|JFormFieldFileList::getOptions]] | + | ** [[JPackageManifest::loadManifestFromXML/11.1|JPackageManifest::loadManifestFromXML]] |
| − | * [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]] | + | ** [[JLibraryManifest::loadManifestFromXML/11.1|JLibraryManifest::loadManifestFromXML]] |
| − | * [[JPackageManifest::loadManifestFromXML/11.1|JPackageManifest::loadManifestFromXML]] | + | |
| − | * [[JLibraryManifest::loadManifestFromXML/11.1|JLibraryManifest::loadManifestFromXML]] | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JFile::stripExt source code''' on [[jplatform:filesystem/file.php#cl-39|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JFile/11.1|JFile]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]] | ||
| + | * [[JFile::stripExt|Other versions of JFile::stripExt]] | ||
| + | {{SeeAlso:JFile::stripExt}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JFile::stripExt|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JFile::stripExt|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 58: | Line 55: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JFile]][[Category:JFile::stripExt]]</noinclude> | <noinclude>[[Category:JFile]][[Category:JFile::stripExt]]</noinclude> | ||
Revision as of 20:56, 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.
JFile::stripExt
Description
Strips the last extension off a file name.
Description:JFile::stripExt [Edit Descripton]
public static function stripExt ($file)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $file | string | The file name |
- Returns string The file name without the extension
- Defined on line 47 of libraries/joomla/filesystem/file.php
- Since
- Referenced by
- JElementModuleLayouts::_getOptions
- JElementComponentLayouts::_getOptions
- JInstallerPlugin::discover
- JInstallerLibrary::discover
- JArchive::extract
- JFormFieldModuleLayout::getInput
- JFormFieldFileList::getOptions
- JAdapter::loadAllAdapters
- JPackageManifest::loadManifestFromXML
- JLibraryManifest::loadManifestFromXML
See also
-
JFile::stripExt source code on BitBucket
-
Class JFile
-
Subpackage Filesystem
- Other versions of JFile::stripExt
SeeAlso:JFile::stripExt [Edit See Also]
User contributed notes
<CodeExamplesForm />
