Actions

API17

Difference between revisions of "JFile"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
(Layout updates)
Line 6: Line 6:
 
===Defined in===
 
===Defined in===
 
libraries/joomla/filesystem/file.php
 
libraries/joomla/filesystem/file.php
 +
* see source code in [[jplatform:filesystem/file.php|BitBucket]]
 
===Subpackage===
 
===Subpackage===
 
[[Subpackage Filesystem/11.1|Filesystem]]
 
[[Subpackage Filesystem/11.1|Filesystem]]
Line 53: Line 54:
 
<source lang="php">jimport( 'joomla.filesystem.file' );</source>
 
<source lang="php">jimport( 'joomla.filesystem.file' );</source>
 
===See also===
 
===See also===
 +
* JFile source code in [[jplatform:filesystem/file.php|BitBucket]]
 
* [[JFile|Other versions of this class]]
 
* [[JFile|Other versions of this class]]
 
{{SeeAlso:JFile}}
 
{{SeeAlso:JFile}}

Revision as of 16:54, 23 April 2011

Replacement filing cabinet.png
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.

[Edit Descripton] Description:JFile

Defined in

libraries/joomla/filesystem/file.php

Subpackage

Filesystem

Extends

Extended by

Methods

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

Importing

jimport( 'joomla.filesystem.file' );

See also

SeeAlso:JFile [Edit See Also]

Examples

<CodeExamplesForm />