API17

Difference between revisions of "JFile::getName"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JFile::getName|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile::getName|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JFile::getName ($file)
+
public static function getName ($file)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 27: Line 24:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' string filename
string filename
+
* '''Defined''' on line 453 of libraries/joomla/filesystem/file.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/filesystem/file.php (line 439)
+
* '''Referenced by'''
* see source code in [[jplatform:filesystem/file.php#cl-439|BitBucket]]
+
** [[JArchive::extract/11.1|JArchive::extract]]
===Referenced by===
+
** [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]]
* [[JArchive::extract/11.1|JArchive::extract]]
 
* [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]]
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JFile::getName source code''' on [[jplatform:filesystem/file.php#cl-445|BitBucket]]
 +
* {{JVer|11.1}} Class [[JFile/11.1|JFile]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]]
 +
* [[JFile::getName|Other versions of JFile::getName]]
 +
{{SeeAlso:JFile::getName}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFile::getName|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFile::getName|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JFile/11.1|JFile]]
+
===User contributed notes===
* [[JFile::getName|Other versions of this method]]
 
{{SeeAlso:JFile::getName}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 50: Line 47:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JFile]][[Category:JFile::getName]]</noinclude>
 
<noinclude>[[Category:JFile]][[Category:JFile::getName]]</noinclude>

Revision as of 20:56, 27 April 2011

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.

Joomla 11.1 JFile::getName[edit]

Description[edit]

Returns the name, without any path.

Template:Description:JFile::getName [Edit Descripton]

public static function getName ($file)
Parameter Type Default Description
$file string File path

See also[edit]

Template:SeeAlso:JFile::getName [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />