Difference between revisions of "JFile"
From Joomla! Documentation
(New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JFile}}
===Defined in===
libraries...) |
|||
Line 45: | Line 45: | ||
|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> |
Revision as of 05:01, 30 March 2010
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
[Edit Descripton] Template:Description:JFile
Defined in[edit]
libraries/joomla/filesystem/file.php
Methods[edit]
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[edit]
jimport( 'joomla.filesystem.file' );
[Edit See Also] Template:SeeAlso:JFile
Examples[edit]
<CodeExamplesForm />