JFile::getExt: Difference between revisions
From Joomla! Documentation
Layout updates |
Updated to r1448:247ba8d88526 |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JFile::getExt|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JFile::getExt|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function getExt ($file) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' string The file extension | |||
string The file extension | * '''Defined''' on line 32 of libraries/joomla/filesystem/file.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/filesystem/file.php | * '''Referenced by''' | ||
* | ** [[JArchive::extract/11.1|JArchive::extract]] | ||
** [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]] | |||
* [[JArchive::extract/11.1|JArchive::extract]] | ** [[JStream::open/11.1|JStream::open]] | ||
* [[JAdapter::loadAllAdapters/11.1|JAdapter::loadAllAdapters]] | |||
* [[JStream::open/11.1|JStream::open]] | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JFile::getExt source code''' on [[jplatform:filesystem/file.php#cl-24|BitBucket]] | |||
* {{JVer|11.1}} Class [[JFile/11.1|JFile]] | |||
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]] | |||
* [[JFile::getExt|Other versions of JFile::getExt]] | |||
{{SeeAlso:JFile::getExt}} | |||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JFile::getExt|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JFile::getExt|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
===User contributed notes=== | |||
=== | |||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 51: | Line 48: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JFile]][[Category:JFile::getExt]]</noinclude> | <noinclude>[[Category:JFile]][[Category:JFile::getExt]]</noinclude> | ||
Revision as of 01:56, 28 April 2011
JFile::getExt
Description
Gets the extension of a file name.
Template:Description:JFile::getExt [Edit Descripton]
public static function getExt ($file)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $file | string | The file name |
- Returns string The file extension
- Defined on line 32 of libraries/joomla/filesystem/file.php
- Since

- Referenced by
See also
JFile::getExt source code on BitBucket
Class JFile
Subpackage Filesystem- Other versions of JFile::getExt
Template:SeeAlso:JFile::getExt [Edit See Also]
User contributed notes
<CodeExamplesForm />