Framework  3.9
document_handler.inc File Reference

Go to the source code of this file.

Classes

class  DocumentHandler
 

Variables

 $doc_types
 MIME types allowable for document uploads. More...
 
 $doc_extensions
 Mapping of common file extensions to human-readable document type. More...
 
 $doc_mime_types
 
 $doc_icons
 

Variable Documentation

◆ $doc_extensions

$doc_extensions
Initial value:
= array(
".doc" => "Microsoft Word Document",
".xls" => "Microsoft Excel Spreadsheet",
".ppt" => "Microsoft Powerpoint Presentation",
".pdf" => "Adobe Acrobat PDF",
".rtf" => "Rich Text Format",
".htm" => "HTML File",
".zip" => "ZIP Archive",
".jpg" => "JPEG Image File",
".gif" => "GIF Image File",
".png" => "PNG Image File",
".xlsx" => "Microsoft Excel Spreadsheet",
".pptx" => "Microsoft Powerpoint Presentation",
".docx" => "Microsoft Word Document",
".mp3" => "MP3 Audio File",
".flv" => "Flash Video",
".wav" => "Audio",
".csv" => "Comma-Separated Values"
)

Mapping of common file extensions to human-readable document type.

Definition at line 57 of file document_handler.inc.

◆ $doc_icons

$doc_icons
Initial value:
= array( ".doc" => "/fakoli/images/msword_icon.png",
".docx" => "/fakoli/images/msword_icon.png",
".xls" => "/fakoli/images/msexcel_icon.png",
".xlsx" => "/fakoli/images/msexcel_icon.png",
".pdf" => "/fakoli/images/pdf_icon.png",
".ppt" => "/fakoli/images/ppt_icon.png",
".pptx" => "/fakoli/images/ppt_icon.png",
".mp3" => "/fakoli/images/mp3.png",
".flv" => "/fakoli/images/icon_video.png",
".jpg" => "/fakoli/images/jpeg_icon.png",
".jpeg" => "/fakoli/images/jpeg_icon.png",
".png" => "/fakoli/images/image_icon.png",
"default" => "/fakoli/images/file_icon.png")

Definition at line 98 of file document_handler.inc.

◆ $doc_mime_types

$doc_mime_types
Initial value:
= array(
".doc" => "application/msword",
".xls" => "application/vnd.ms-excel",
".ppt" => "application/vnd.ms-powerpoint",
".pdf" => "application/pdf",
".rtf" => "text/rtf",
".htm" => "text/html",
".zip" => "application/zip",
".jpg" => "image/jpeg",
".gif" => "image/gif",
".png" => "image/x-png",
".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
".pptx" => "application/vnd.openxmlformats-officedocument.presentationml.presentation",
".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
".mp3" => "audio/mpeg",
".m4a" => "audio/mpeg",
".flv" => "video/x-flv",
".wav" => "audio/wav",
".csv" => "text/csv"
)

Definition at line 77 of file document_handler.inc.

◆ $doc_types

$doc_types
Initial value:
= array( "application/msword",
"application/vnd.ms-excel",
"application/excel",
"application/ms-excel",
"application/pdf",
"application/zip",
"application/vnd.ms-powerpoint",
"application/ms-powerpoint",
"application/mspowerpoint",
"text/html",
"text/rtf",
"text/csv",
"audio/mpeg",
"video/flv",
"audio/wav",
)

MIME types allowable for document uploads.

Definition at line 37 of file document_handler.inc.