Class FontAwesomeIconClassProvider

Methods summary

public static getClass( string $type ) : string

Returns a font awesome class string by the given type. If no type for the given file type was found, the fallback class 'fa fa-file-text-o' will be returned.

Properties summary

protected static $map : array
[
    'media'        => 'fa fa-play-circle-o',
    'documents'    => 'fa fa-file-o',
    'tables'       => 'fa fa-table',
    'presentation' => 'fa fa-file-powerpoint-o',
    'images'       => 'fa fa-file-image-o',
    'text'         => 'fa fa-file-text-o',
    'archived'     => 'fa fa-file-archive-o'
]
protected static $media : array
[
    'webm',
    'ogx',
    'ogv',
    'oga',
    'ogg',
    'ogm',
    'spx',
    'mp3',
    'mp4',
    'wav',
    'asf',
    'mpg',
    'mpeg',
    'avi',
    'wmv',
    'mov',
    'ram'
]
protected static $documents : array
[
    'doc',
    'docx',
    'docm',
    'dot',
    'dotm',
    'dotx',
    'odt',
    'ods',
    'odg',
    'odc',
    'odf',
    'odi',
    'odm',
    'ott',
    'ots',
    'otp',
    'otg'
]
protected static $tables : array
[
    'xls',
    'xlsx',
    'xlsb',
    'xlsm',
    'xlt',
    'xltm',
    'xltx',
    'xlw',
    'csv',
    'ods'
]
protected static $presentation : array
[
    'odp',
    'ppa',
    'ppam',
    'pps',
    'ppsm',
    'ppsx',
    'ppt',
    'pptm',
    'pptx',
    'pptx',
    'pptx',
    'pot',
    'potm',
    'potx',
]
protected static $images : array
[
    'bmp',
    'gif',
    'jpg',
    'jpeg',
    'png'
]
protected static $text : array
[
    'rtf',
    'txt'
]
protected static $archived : array
[
    'rar',
    'tar',
    'zip',
    'bz2',
    '7z',
    's7z',
    'gz',
    'tar.gz'
]
protected static $custom : array
[
    'pdf'  => 'fa fa-file-pdf-o',
    'html' => 'fa fa-html5',
    'htm'  => 'fa fa-html5',
    'link' => 'fa fa-link'
]