File system file object library.
More...
File system file object library.
Engine / Object Library
- Author
- CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
- Version
- 1.0.2.1
- Date
- Creation: Jun 2007
-
Modification: Jul 2025
- Copyright
- 2007 - 2025 CaMykS Team
- Note
- This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. FSFile class.
◆ __construct()
| FSFile::__construct |
( |
|
$path = '', |
|
|
|
$file = null |
|
) |
| |
Class constructor.
- Parameters
-
| string | $path | the path to the file |
| string | $file | the file name |
◆ 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: