CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
FSFile Class Reference

Public Member Functions

 __construct ($path='', $file=null)
 
 get_mimeIcon ($size=32, $styles='')
 
 get_mimeIconURL ($size=32)
 
 download ($title=null)
 
 send ($title=null)
 
 md5 ($raw_output=false)
 
 get_contents ()
 
 get_base64Data ()
 

Public Attributes

 $filename
 File name. More...
 
 $path
 File path. More...
 
 $fullpath
 Full file path with file name. More...
 
 $exists
 File exists. More...
 
 $size
 File size in octet/byte. More...
 
 $hsize
 Human readable file size. More...
 
 $mime
 File mime. More...
 
 $type
 File type, first part of mime value. More...
 
 $ext
 File extension. More...
 
 $atime
 File last opening time. More...
 
 $mtime
 File last modification time. More...
 
 $ctime
 File inode change time. More...
 
 $mimedesc
 File mime description. More...
 
 $typedesc
 File type description. More...
 
 $moreinfos
 File additional information. More...
 

Private Member Functions

 get ()
 
 get_mime ()
 
 get_stat ()
 
 get_descriptions ()
 
 get_moreInfos ()
 
 get_imageInfos ()
 

Detailed Description

FSFile class.

Constructor & Destructor Documentation

FSFile::__construct (   $path = '',
  $file = null 
)

Class constructor.

Parameters
string$paththe path to the file
string$filethe file name
Returns
void

Member Function Documentation

FSFile::download (   $title = null)

Download file to client browser.

Parameters
string$title
Returns
void
FSFile::get ( )
private

Load file description.

Returns
void
FSFile::get_base64Data ( )

Return file content as base64 data.

Returns
string
FSFile::get_contents ( )

Return file content.

Returns
string
FSFile::get_descriptions ( )
private

Load file description.

Returns
void
FSFile::get_imageInfos ( )
private

Load more information from image file.

Returns
void
FSFile::get_mime ( )
private

Load file mime.

Returns
void
FSFile::get_mimeIcon (   $size = 32,
  $styles = '' 
)

Return mime relative icon.

Parameters
int$size
string$styles
Returns
string
FSFile::get_mimeIconURL (   $size = 32)

Return mime relative icon URL.

Parameters
int$size
Returns
string
FSFile::get_moreInfos ( )
private

Load more information from file.

Returns
void
FSFile::get_stat ( )
private

Load file stats.

Returns
void
FSFile::md5 (   $raw_output = false)

Return MD5 checksum of the file.

Parameters
boolean$raw_output
Returns
string
FSFile::send (   $title = null)

Send file to client browser.

Parameters
string$title
Returns
void

Member Data Documentation

integer FSFile::$atime

File last opening time.

integer FSFile::$ctime

File inode change time.

boolean FSFile::$exists

File exists.

string FSFile::$ext

File extension.

string FSFile::$filename

File name.

string FSFile::$fullpath

Full file path with file name.

string FSFile::$hsize

Human readable file size.

string FSFile::$mime

File mime.

string FSFile::$mimedesc

File mime description.

array FSFile::$moreinfos

File additional information.

integer FSFile::$mtime

File last modification time.

string FSFile::$path

File path.

integer FSFile::$size

File size in octet/byte.

string FSFile::$type

File type, first part of mime value.

string FSFile::$typedesc

File type description.


The documentation for this class was generated from the following file: