|
static | getExt ($file) |
|
static | stripExt ($file) |
|
static | makeSafe ($file) |
|
static | copy ($src, $dest, $path=null, $useStreams=false) |
|
static | delete ($file) |
|
static | move ($src, $dest, $path='', $useStreams=false) |
|
static | read ($filename, $incpath=false, $amount=0, $chunksize=8192, $offset=0) |
|
static | write ($file, $buffer, $useStreams=false) |
|
static | append ($file, $buffer, $useStreams=false) |
|
static | upload ($src, $dest, $useStreams=false, $allowUnsafe=false, $safeFileOptions=array()) |
|
static | exists ($file) |
|
static | getName ($file) |
|
A File handling class
- Depuis
- 1.7.0
◆ append()
static append |
( |
|
$file, |
|
|
|
$buffer, |
|
|
|
$useStreams = false |
|
) |
| |
|
static |
◆ copy()
static copy |
( |
|
$src, |
|
|
|
$dest, |
|
|
|
$path = null , |
|
|
|
$useStreams = false |
|
) |
| |
|
static |
◆ delete()
◆ exists()
Wrapper for the standard file_exists function
- Paramètres
-
- Renvoie
- boolean True if path is a file
- Depuis
- 1.7.0
Références $file.
Référencé par FileWrapper\exists().
◆ getExt()
◆ getName()
◆ makeSafe()
Makes file name safe to use
- Paramètres
-
string | $file | The name of the file [not full path] |
- Renvoie
- string The sanitised string
- Depuis
- 1.7.0
Références $file.
◆ move()
static move |
( |
|
$src, |
|
|
|
$dest, |
|
|
|
$path = '' , |
|
|
|
$useStreams = false |
|
) |
| |
|
static |
◆ read()
static read |
( |
|
$filename, |
|
|
|
$incpath = false , |
|
|
|
$amount = 0 , |
|
|
|
$chunksize = 8192 , |
|
|
|
$offset = 0 |
|
) |
| |
|
static |
Read the contents of a file
- Paramètres
-
string | $filename | The full file path |
boolean | $incpath | Use include path |
integer | $amount | Amount of file to read |
integer | $chunksize | Size of chunks to read |
integer | $offset | Offset of the file |
- Renvoie
- mixed Returns file contents or boolean False if failed
- Depuis
- 1.7.0
- Obsolète:
- 4.0 - Use the native file_get_contents() instead.
Références $data, $offset, Log\add(), null, Text\sprintf(), et Log\WARNING.
Référencé par FileWrapper\read().
◆ stripExt()
Strips the last extension off of a file name
- Paramètres
-
- Renvoie
- string The file name without the extension
- Depuis
- 1.7.0
Références $file.
◆ upload()
static upload |
( |
|
$src, |
|
|
|
$dest, |
|
|
|
$useStreams = false , |
|
|
|
$allowUnsafe = false , |
|
|
|
$safeFileOptions = array() |
|
) |
| |
|
static |
Moves an uploaded file to a destination folder
- Paramètres
-
string | $src | The name of the php (temporary) uploaded file |
string | $dest | The path (including filename) to move the uploaded file to |
boolean | $useStreams | True to use streams |
boolean | $allowUnsafe | Allow the upload of unsafe files |
boolean | $safeFileOptions | Options to ::isSafeFile |
- Renvoie
- boolean True on success
- Depuis
- 1.7.0
Références $baseDir, Text\_(), Log\add(), PathWrapper\clean(), FolderWrapper\create(), ClientHelper\getCredentials(), FtpClient\getInstance(), Factory\getStream(), JPATH_ROOT, Text\sprintf(), et Log\WARNING.
◆ write()
static write |
( |
|
$file, |
|
|
|
$buffer, |
|
|
|
$useStreams = false |
|
) |
| |
|
static |
La documentation de cette classe a été générée à partir du fichier suivant :