API17:JFile
From Joomla! Documentation
(Difference between revisions)
m (→See also: added crosslink to: How to use the filesystem package) |
m (→User contributed notes: bad link repair) |
||
| Line 82: | Line 82: | ||
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
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 />
