API17

Difference between revisions of "JFile"

From Joomla! Documentation

m (→‎User contributed notes: bad link repair)
m (moving preparation)
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::copy/11.1|copy]]
+
|[[API17:JFile::copy|copy]]
 
|Copies a file.  
 
|Copies a file.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::delete/11.1|delete]]
+
|[[API17:JFile::delete|delete]]
 
|Delete a file or array of files.  
 
|Delete a file or array of files.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::exists/11.1|exists]]
+
|[[API17:JFile::exists|exists]]
 
|Wrapper for the standard file_exists function.  
 
|Wrapper for the standard file_exists function.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::getExt/11.1|getExt]]
+
|[[API17:JFile::getExt|getExt]]
 
|Gets the extension of a file name.  
 
|Gets the extension of a file name.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::getName/11.1|getName]]
+
|[[API17:JFile::getName|getName]]
 
|Returns the name, without any path.  
 
|Returns the name, without any path.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::makeSafe/11.1|makeSafe]]
+
|[[API17:JFile::makeSafe|makeSafe]]
 
|Makes file name safe to use.  
 
|Makes file name safe to use.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::move/11.1|move]]
+
|[[API17:JFile::move|move]]
 
|Moves a file.  
 
|Moves a file.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::read/11.1|read]]
+
|[[API17:JFile::read|read]]
 
|Read the contents of a file.  
 
|Read the contents of a file.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::stripExt/11.1|stripExt]]
+
|[[API17:JFile::stripExt|stripExt]]
 
|Strips the last extension off a file name.  
 
|Strips the last extension off a file name.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::upload/11.1|upload]]
+
|[[API17:JFile::upload|upload]]
 
|Moves an uploaded file to a destination folder.  
 
|Moves an uploaded file to a destination folder.  
 
|-
 
|-
 
|public static  
 
|public static  
|[[JFile::write/11.1|write]]
+
|[[API17:JFile::write|write]]
 
|Write contents to a file.  
 
|Write contents to a file.  
 
|-
 
|-
Line 63: Line 63:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JFile source code''' on [[jplatform:filesystem/file.php|BitBucket]]
 
* {{JVer|11.1}} '''JFile source code''' on [[jplatform:filesystem/file.php|BitBucket]]
* {{JVer|11.1}} Subpackage [[Subpackage Filesystem/11.1|Filesystem]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage Filesystem|Filesystem]]
* [[JFile|Other versions of JFile]]
+
* [[API17:JFile|Other versions of JFile]]
 
* [[How_to_use_the_filesystem_package|How to use the filesystem package]]
 
* [[How_to_use_the_filesystem_package|How to use the filesystem package]]
 
{{SeeAlso:JFile}}
 
{{SeeAlso:JFile}}
Line 82: Line 82:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JFile]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Revision as of 20:39, 11 May 2013

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[edit]

Description[edit]

Template:Description:JFile [Edit Descripton]

Methods[edit]

Visibility Method name Description
public static copy Copies a file.
public static delete Delete a file or array of files.
public static exists Wrapper for the standard file_exists function.
public static getExt Gets the extension of a file name.
public static getName Returns the name, without any path.
public static makeSafe Makes file name safe to use.
public static move Moves a file.
public static read Read the contents of a file.
public static stripExt Strips the last extension off a file name.
public static upload Moves an uploaded file to a destination folder.
public static write Write contents to a file.
  • Defined in libraries/joomla/filesystem/file.php

Importing[edit]

jimport( 'joomla.filesystem.file' );

See also[edit]

Template:SeeAlso:JFile [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />