API17

Difference between revisions of "JFile::getName"

From Joomla! Documentation

(Layout updates)
m (preparing for archive only)
 
(5 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
Returns the name, without any path.  
 
Returns the name, without any path.  
  
{{Description:JFile::getName}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JFile::getName|Edit Descripton]]<nowiki>]</nowiki>
 
</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 22:
 
|-
 
|-
 
|}
 
|}
===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]]
+
** [[API17:JArchive::extract|JArchive::extract]]
===Referenced by===
+
** [[API17:JFormFieldComponentLayout::getInput|JFormFieldComponentLayout::getInput]]
* [[JArchive::extract/11.1|JArchive::extract]]
 
* [[JFormFieldComponentLayout::getInput/11.1|JFormFieldComponentLayout::getInput]]
 
 
===See also===
 
===See also===
<span class="editsection" style="font-size:76%;">
+
* {{JVer|11.1}} '''JFile::getName source code''' on [[jplatform:filesystem/file.php#cl-445|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JFile::getName|Edit See Also]]<nowiki>]</nowiki>
+
* {{JVer|11.1}} Class [[API17:JFile|JFile]]
</span>
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Filesystem|Filesystem]]
* [[JFile/11.1|JFile]]
+
* [[API17:JFile::getName|Other versions of JFile::getName]]
* [[JFile::getName|Other versions of this method]]
+
 
{{SeeAlso:JFile::getName}}
+
 
===Examples===
+
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JFile::getName
 
category=JFile::getName
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JFile]][[Category:JFile::getName]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 22:01, 24 March 2017

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.


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

See also[edit]


User contributed notes[edit]

Code Examples[edit]