protected function itemTypeToIconClass($item, $itemType)
    {
        if ($item->type == MediaLibraryItem::TYPE_FOLDER) {
            return 'icon-folder';
        }

        switch ($itemType) {
            case MediaLibraryItem::FILE_TYPE_IMAGE: return "icon-picture-o";
            case MediaLibraryItem::FILE_TYPE_VIDEO: return "icon-video-camera";
            case MediaLibraryItem::FILE_TYPE_AUDIO: return "icon-volume-up";
            default: return "icon-file";
        }
    }
protected function itemTypeToIconClass($item, $itemType)
    {
        if ($item->type == MediaLibraryItem::TYPE_FOLDER) {
            return 'icon-folder';
        }

        switch ($itemType) {
            case MediaLibraryItem::FILE_TYPE_IMAGE: return "icon-picture-o";
            case MediaLibraryItem::FILE_TYPE_VIDEO: return "icon-video-camera";
            case MediaLibraryItem::FILE_TYPE_AUDIO: return "icon-volume-up";
            default: return "icon-file";
        }
    }
protected function itemTypeToIconClass ( $ item , $ itemType ) { if ( $ item -> type == MediaLibraryItem :: TYPE_FOLDER ) { return 'icon-folder' ; } switch ( $ itemType ) { case MediaLibraryItem :: FILE_TYPE_IMAGE : return "icon-picture-o" ; case MediaLibraryItem :: FILE_TYPE_VIDEO : return "icon-video-camera" ; case MediaLibraryItem :: FILE_TYPE_AUDIO : return "icon-volume-up" ; default : return "icon-file" ; } }
Returns an icon for the item type
@param System\Classes\MediaLibraryItem $item
@param string $itemType
@return string
Returns an icon for the item type