API17

Difference between revisions of "JFile"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (→‎User contributed notes: bad link repair)
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
=={{JVer|11.1}} JFile==
 +
===Description===
 +
{{Description:JFile}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JFile|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JFile|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
{{Description:JFile}}
 
===Defined in===
 
libraries/joomla/filesystem/file.php
 
===Subpackage===
 
[[Subpackage Filesystem/11.1|Filesystem]]
 
===Extends===
 
===Extended by===
 
 
===Methods===
 
===Methods===
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
 +
!Visibility
 
!Method name
 
!Method name
 
!Description
 
!Description
 
|-
 
|-
 +
|public static
 
|[[JFile::copy/11.1|copy]]
 
|[[JFile::copy/11.1|copy]]
 
|Copies a file.  
 
|Copies a file.  
 
|-
 
|-
 +
|public static
 
|[[JFile::delete/11.1|delete]]
 
|[[JFile::delete/11.1|delete]]
 
|Delete a file or array of files.  
 
|Delete a file or array of files.  
 
|-
 
|-
 +
|public static
 
|[[JFile::exists/11.1|exists]]
 
|[[JFile::exists/11.1|exists]]
 
|Wrapper for the standard file_exists function.  
 
|Wrapper for the standard file_exists function.  
 
|-
 
|-
 +
|public static
 
|[[JFile::getExt/11.1|getExt]]
 
|[[JFile::getExt/11.1|getExt]]
 
|Gets the extension of a file name.  
 
|Gets the extension of a file name.  
 
|-
 
|-
 +
|public static
 
|[[JFile::getName/11.1|getName]]
 
|[[JFile::getName/11.1|getName]]
 
|Returns the name, without any path.  
 
|Returns the name, without any path.  
 
|-
 
|-
 +
|public static
 
|[[JFile::makeSafe/11.1|makeSafe]]
 
|[[JFile::makeSafe/11.1|makeSafe]]
 
|Makes file name safe to use.  
 
|Makes file name safe to use.  
 
|-
 
|-
 +
|public static
 
|[[JFile::move/11.1|move]]
 
|[[JFile::move/11.1|move]]
 
|Moves a file.  
 
|Moves a file.  
 
|-
 
|-
 +
|public static
 
|[[JFile::read/11.1|read]]
 
|[[JFile::read/11.1|read]]
 
|Read the contents of a file.  
 
|Read the contents of a file.  
 
|-
 
|-
 +
|public static
 
|[[JFile::stripExt/11.1|stripExt]]
 
|[[JFile::stripExt/11.1|stripExt]]
 
|Strips the last extension off a file name.  
 
|Strips the last extension off a file name.  
 
|-
 
|-
 +
|public static
 
|[[JFile::upload/11.1|upload]]
 
|[[JFile::upload/11.1|upload]]
 
|Moves an uploaded file to a destination folder.  
 
|Moves an uploaded file to a destination folder.  
 
|-
 
|-
 +
|public static
 
|[[JFile::write/11.1|write]]
 
|[[JFile::write/11.1|write]]
 
|Write contents to a file.  
 
|Write contents to a file.  
 
|-
 
|-
 
|}
 
|}
 +
* '''Defined in''' libraries/joomla/filesystem/file.php
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.filesystem.file' );</source>
 
<source lang="php">jimport( 'joomla.filesystem.file' );</source>
 
===See also===
 
===See also===
* [[JFile|Other versions of this class]]
+
* {{JVer|11.1}} '''JFile source code''' on [[jplatform:filesystem/file.php|BitBucket]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage Filesystem/11.1|Filesystem]]
 +
* [[JFile|Other versions of JFile]]
 +
* [[How_to_use_the_filesystem_package|How to use the filesystem package]]
 
{{SeeAlso:JFile}}
 
{{SeeAlso:JFile}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JFile|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JFile|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Examples===
+
 
 +
===User contributed notes===
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 66: Line 79:
 
category=ClassExample
 
category=ClassExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JFile]]</noinclude>
+
<noinclude>[[Category:Platform JClasses]][[Category:Platform 11.1]][[Category:JFile]]</noinclude>

Revision as of 13:43, 29 August 2012

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 />