API15:JFile
From Joomla! Documentation
(Difference between revisions)
(→Defined in) |
|||
| Line 6: | Line 6: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/filesystem/file.php | libraries/joomla/filesystem/file.php | ||
| + | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Latest revision as of 04:23, 6 May 2010
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
Contents |
[edit] Defined in
libraries/joomla/filesystem/file.php
[edit] Methods
| Method name | Description |
|---|---|
| getExt | Gets the extension of a file name |
| stripExt | Strips the last extension off a file name |
| makeSafe | Makes file name safe to use |
| copy | Copies a file |
| delete | Delete a file or array of files |
| move | Moves a file |
| read | Read the contents of a file |
| write | Write contents to a file |
| upload | Moves an uploaded file to a destination folder |
| exists | Wrapper for the standard file_exists function |
| getName | Returns the name, sans any path |
[edit] Importing
jimport( 'joomla.filesystem.file' );
[edit] Examples
<CodeExamplesForm />
