Core  3.2
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

 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

Returns
string (empty string if no extension found)

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

+ Here is the call graph for this function:

getFileExtension (   $filename)

get extension from file name

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

getIconMimeArray ( )

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

getIconMimeFile (   $sysmime)

Definition at line 109 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 241 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 325 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 134 of file Lib.FileMime.php.

+ Here is the call graph for this function:

getTextMimeFile (   $f,
  $fn = '' 
)

Definition at line 199 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 294 of file Lib.FileMime.php.

loadUserMimeConf ( )

load mime-user.conf XML file into PHP array

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

← centre documentaire © anakeen