Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
Lib.FileMime.php File Reference

Go to the source code of this file.

Namespaces

namespace  FDL
 

Functions

 getIconMimeArray ()
 
 getIconMimeFile ($sysmime)
 
 getSysMimeFile ($f, $fn="")
 
 getTextMimeFile ($f, $fn= '')
 
 getExtension ($smime)
 
 getFileExtension ($filename)
 
 getMimeFile ($filename, $type= 'sys')
 
 loadUserMimeConf ()
 
 loadMimeConf ()
 
 getPdfNumberOfPages ($file)
 

Function Documentation

getExtension (   $smime)

get current extension from system mime

Definition at line 218 of file Lib.FileMime.php.

+ Here is the call graph for this function:

getFileExtension (   $filename)

get extension from file name

Definition at line 230 of file Lib.FileMime.php.

getIconMimeArray ( )

Definition at line 19 of file Lib.FileMime.php.

getIconMimeFile (   $sysmime)

Definition at line 108 of file Lib.FileMime.php.

+ Here is the call graph for this function:

getMimeFile (   $filename,
  $type = 'sys' 
)

get MIME type/text from mime.conf and mime-user.conf files

Definition at line 239 of file Lib.FileMime.php.

+ Here is the call graph for this function:

getPdfNumberOfPages (   $file)

get number of pages from pdf file

Returns
int

Definition at line 323 of file Lib.FileMime.php.

getSysMimeFile (   $f,
  $fn = "" 
)

return system file mime

Parameters
string$ffilename
string$fnbasename of file (can be different of real path) return string mime like text/html

Definition at line 133 of file Lib.FileMime.php.

+ Here is the call graph for this function:

getTextMimeFile (   $f,
  $fn = '' 
)

Definition at line 198 of file Lib.FileMime.php.

+ Here is the call graph for this function:

loadMimeConf ( )

load mime.conf XML file into PHP array

Definition at line 292 of file Lib.FileMime.php.

loadUserMimeConf ( )

load mime-user.conf XML file into PHP array

Definition at line 258 of file Lib.FileMime.php.

← centre documentaire © anakeen - published under CC License - Dynacase