API17:JFile
From Joomla! Documentation
(Difference between revisions)
(Updated to r1448:247ba8d88526) |
m (→See also: added crosslink to: How to use the filesystem package) |
||
| Line 65: | Line 65: | ||
* {{JVer|11.1}} Subpackage [[Subpackage Filesystem/11.1|Filesystem]] | * {{JVer|11.1}} Subpackage [[Subpackage Filesystem/11.1|Filesystem]] | ||
* [[JFile|Other versions of JFile]] | * [[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> | ||
| + | |||
===User contributed notes=== | ===User contributed notes=== | ||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
Revision as of 03:54, 1 July 2012
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
Description
Description:JFile [Edit Descripton]
Methods
| 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
jimport( 'joomla.filesystem.file' );
See also
-
JFile source code on BitBucket
-
Subpackage Filesystem
- Other versions of JFile
- How to use the filesystem package
User contributed notes
<CodeExamplesForm />
