◆ __construct()
FSFile::__construct |
( |
|
$path = '' , |
|
|
|
$file = null |
|
) |
| |
Class constructor.
- Parameters
-
string | $path | the path to the file |
string | $file | the file name |
- Returns
- void
◆ get()
Load file description.
- Returns
- void
◆ get_mime()
Load file mime.
- Returns
- void
◆ get_stat()
Load file stats.
- Returns
- void
◆ get_descriptions()
FSFile::get_descriptions |
( |
| ) |
|
|
private |
Load file description.
- Returns
- void
◆ get_moreInfos()
FSFile::get_moreInfos |
( |
| ) |
|
|
private |
Load more information from file.
- Returns
- void
◆ get_imageInfos()
FSFile::get_imageInfos |
( |
| ) |
|
|
private |
Load more information from image file.
- Returns
- void
◆ get_mimeIcon()
FSFile::get_mimeIcon |
( |
|
$size = 32 , |
|
|
|
$styles = '' |
|
) |
| |
Return mime relative icon.
- Parameters
-
- Returns
- string
◆ get_mimeIconURL()
FSFile::get_mimeIconURL |
( |
|
$size = 32 | ) |
|
Return mime relative icon URL.
- Parameters
-
- Returns
- string
◆ download()
FSFile::download |
( |
|
$title = null | ) |
|
Download file to client browser.
- Parameters
-
- Returns
- void
◆ send()
FSFile::send |
( |
|
$title = null | ) |
|
Send file to client browser.
- Parameters
-
- Returns
- void
◆ md5()
FSFile::md5 |
( |
|
$raw_output = false | ) |
|
Return MD5 checksum of the file.
- Parameters
-
- Returns
- string
◆ get_contents()
Return file content.
- Returns
- string
◆ get_base64Data()
FSFile::get_base64Data |
( |
| ) |
|
Return file content as base64 data.
- Returns
- string
◆ $filename
◆ $path
◆ $fullpath
Full file path with file name.
◆ $exists
◆ $size
◆ $hsize
Human readable file size.
◆ $mime
◆ $type
File type, first part of mime value.
◆ $ext
◆ $atime
◆ $mtime
File last modification time.
◆ $ctime
◆ $mimedesc
◆ $typedesc
◆ $moreinfos
File additional information.
The documentation for this class was generated from the following file: