Class humhub\libs\MimeHelper

Inheritancehumhub\libs\MimeHelper

MimeHelper

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getMimeIconClassByExtension() Returns Stylesheet Classname based on file extension humhub\libs\MimeHelper

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
ICON_AUDIO 'mime-audio' humhub\libs\MimeHelper
ICON_EXCEL 'mime-excel' humhub\libs\MimeHelper
ICON_FILE 'mime-file' humhub\libs\MimeHelper
ICON_ILLUSTRATOR 'mime-illustrator' humhub\libs\MimeHelper
ICON_IMAGE 'mime-image' humhub\libs\MimeHelper
ICON_PDF 'mime-pdf' humhub\libs\MimeHelper
ICON_PHOTOSHOP 'mime-photoshop' humhub\libs\MimeHelper
ICON_POWERPOINT 'mime-powerpoint' humhub\libs\MimeHelper
ICON_VIDEO 'mime-video' humhub\libs\MimeHelper
ICON_WORD 'mime-word' IconClass humhub\libs\MimeHelper
ICON_ZIP 'mime-zip' humhub\libs\MimeHelper

Method Details

getMimeIconClassByExtension() public static method

Returns Stylesheet Classname based on file extension

public static string getMimeIconClassByExtension ( $ext )
$ext string|humhub\modules\file\models\File

The file extension or file object

return string

The CSS Class