JFile: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JFile}}
===Defined in===
libraries... |
m preparing for archive only |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/filesystem/file.php | libraries/joomla/filesystem/file.php | ||
Line 45: | Line 40: | ||
|Returns the name, sans any path | |Returns the name, sans any path | ||
|} | |} | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.filesystem.file' );</source> | <source lang="php">jimport( 'joomla.filesystem.file' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFile | category=JFile | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> |
Latest revision as of 01:39, 25 March 2017
Defined in
libraries/joomla/filesystem/file.php
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 |
Importing
jimport( 'joomla.filesystem.file' );
Examples
Code Examples