API17:JFile::exists
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JFile::exists|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JFile::exists|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
<source lang="php"> | <source lang="php"> | ||
| − | public static | + | public static function exists ($file) |
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' boolean True if path is a file | |
| − | boolean True if path is a file | + | * '''Defined''' on line 441 of libraries/joomla/filesystem/file.php |
| − | + | * '''Since''' {{JVer|11.1 }} | |
| − | libraries/joomla/filesystem/file.php | + | * '''Referenced by''' |
| − | * | + | ** [[JInstallerLanguage::_install/11.1|JInstallerLanguage::_install]] |
| − | + | ** [[JEditor::_loadEditor/11.1|JEditor::_loadEditor]] | |
| − | * [[JInstallerLanguage::_install/11.1|JInstallerLanguage::_install]] | + | ** [[JHelp::createURL/11.1|JHelp::createURL]] |
| − | * [[JEditor::_loadEditor/11.1|JEditor::_loadEditor]] | + | ** [[JInstallerLanguage::update/11.1|JInstallerLanguage::update]] |
| − | * [[JHelp::createURL/11.1|JHelp::createURL]] | + | |
| − | * [[JInstallerLanguage::update/11.1|JInstallerLanguage::update]] | + | |
===See also=== | ===See also=== | ||
| + | * {{JVer|11.1}} '''JFile::exists source code''' on [[jplatform:filesystem/file.php#cl-433|BitBucket]] | ||
| + | * {{JVer|11.1}} Class [[JFile/11.1|JFile]] | ||
| + | * {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]] | ||
| + | * [[JFile::exists|Other versions of JFile::exists]] | ||
| + | {{SeeAlso:JFile::exists}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JFile::exists|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JFile::exists|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | + | ===User contributed notes=== | |
| − | + | ||
| − | + | ||
| − | === | + | |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 52: | Line 49: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JFile]][[Category:JFile::exists]]</noinclude> | <noinclude>[[Category:JFile]][[Category:JFile::exists]]</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::exists
Description
Wrapper for the standard file_exists function.
Description:JFile::exists [Edit Descripton]
public static function exists ($file)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $file | string | File path |
- Returns boolean True if path is a file
- Defined on line 441 of libraries/joomla/filesystem/file.php
- Since
- Referenced by
See also
-
JFile::exists source code on BitBucket
-
Class JFile
-
Subpackage Filesystem
- Other versions of JFile::exists
SeeAlso:JFile::exists [Edit See Also]
User contributed notes
<CodeExamplesForm />
