FbFileType Class Reference
[FileBrowser]

File name analyzator. More...

List of all members.

Public Member Functions

 __construct ($fileName)
 
Parameters:
fileName Full path to file to analyze.

 canHighLight ()
 Check if syntax-highlihting is available for file.
 getDetectedCharset ()
 
Note:
getText() method always returns text in UTF-8.

 highlight ()
 Experimental! Syntax higlight file using GeSHi.
 isDownloadDefault ()
 Check if download is default action for this type of file.
 isImage ()
 Check if file type is image.
 isPdf ()
 Check if file type is PDF.
 isTextFile ()
 Check if file is human readable.


Detailed Description

File name analyzator.

Definition at line 21 of file FbFileType.class.php.


Member Function Documentation

FbFileType::canHighLight (  ) 

Check if syntax-highlihting is available for file.

Returns:
Return true, if syntax-highlighting is available.

Definition at line 114 of file FbFileType.class.php.

Referenced by highlight().

FbFileType::getDetectedCharset (  ) 

Note:
getText() method always returns text in UTF-8.

Returns:
Return document's original charset.

Definition at line 152 of file FbFileType.class.php.

References CharsetDetector::DEFAULT_MIN_RELEVANCE.

FbFileType::highlight (  ) 

Experimental! Syntax higlight file using GeSHi.

Returns:
Return syntax-highlighted file's source.

Definition at line 168 of file FbFileType.class.php.

References canHighLight().

Here is the call graph for this function:

FbFileType::isDownloadDefault (  ) 

Check if download is default action for this type of file.

Returns:
Return true if download is default action.

Definition at line 128 of file FbFileType.class.php.

FbFileType::isImage (  ) 

Check if file type is image.

Returns:
Return true if file type is image.

Definition at line 180 of file FbFileType.class.php.

FbFileType::isPdf (  ) 

Check if file type is PDF.

Returns:
Return true if file type is PDF.

Definition at line 138 of file FbFileType.class.php.

FbFileType::isTextFile (  ) 

Check if file is human readable.

Returns:
Return true, if file seems as human readable.

Definition at line 121 of file FbFileType.class.php.


The documentation for this class was generated from the following file:
Generated on Sat Mar 8 10:26:43 2008 for Dudka.cz by  doxygen 1.5.4