Actions

API17

Difference between revisions of "JFile::stripExt"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Updated to r1448:247ba8d88526)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFile::stripExt|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile::stripExt|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JFile::stripExt ($file)
+
public static function stripExt ($file)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''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
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php
+
* '''Referenced by'''
===Referenced by===
+
** [[JElementModuleLayouts::_getOptions/11.1|JElementModuleLayouts::_getOptions]]
* [[JElementModuleLayouts/_getOptions/11.1|JElementModuleLayouts::_getOptions]]
+
** [[JElementComponentLayouts::_getOptions/11.1|JElementComponentLayouts::_getOptions]]
* [[JElementComponentLayouts/_getOptions/11.1|JElementComponentLayouts::_getOptions]]
+
** [[JInstallerPlugin::discover/11.1|JInstallerPlugin::discover]]
* [[JInstallerPlugin/discover/11.1|JInstallerPlugin::discover]]
+
** [[JInstallerLibrary::discover/11.1|JInstallerLibrary::discover]]
* [[JInstallerLibrary/discover/11.1|JInstallerLibrary::discover]]
+
** [[JArchive::extract/11.1|JArchive::extract]]
* [[JArchive/extract/11.1|JArchive::extract]]
+
** [[JFormFieldModuleLayout::getInput/11.1|JFormFieldModuleLayout::getInput]]
* [[JFormFieldModuleLayout/getInput/11.1|JFormFieldModuleLayout::getInput]]
+
** [[JFormFieldFileList::getOptions/11.1|JFormFieldFileList::getOptions]]
* [[JFormFieldFileList/getOptions/11.1|JFormFieldFileList::getOptions]]
+
** [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]]
* [[JAdapter/loadAllAdapters/11.1|JAdapter::loadAllAdapters]]
+
** [[JPackageManifest::loadManifestFromXML/11.1|JPackageManifest::loadManifestFromXML]]
* [[JPackageManifest/loadManifestFromXML/11.1|JPackageManifest::loadManifestFromXML]]
+
** [[JLibraryManifest::loadManifestFromXML/11.1|JLibraryManifest::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>
* [[JFile/11.1|JFile]]
+
===User contributed notes===
* [[JFile::stripExt|Other versions of this method]]
+
{{SeeAlso:JFile::stripExt}}
+
===Examples===
+
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 57: 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

Replacement filing cabinet.png
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.

Joomla 11.1 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

See also

SeeAlso:JFile::stripExt [Edit See Also]

User contributed notes

<CodeExamplesForm />