concrete/src/File/Type/Type.php
public static function getGenericTypeText($type)
    {
        switch ($type) {
            case static::T_IMAGE:
                return t('Image');
                break;
            case static::T_VIDEO:
                return t('Video');
                break;
            case static::T_TEXT:
                return t('Text');
                break;
            case static::T_AUDIO:
                return t('Audio');
                break;
            case static::T_DOCUMENT:
                return t('Document');
                break;
            case static::T_APPLICATION:
                return t('Application');
                break;
            case static::T_UNKNOWN:
                return t('File');
                break;

        }
    }
public static function getGenericTypeText($type)
    {
        switch ($type) {
            case static::T_IMAGE:
                return t('Image');
                break;
            case static::T_VIDEO:
                return t('Video');
                break;
            case static::T_TEXT:
                return t('Text');
                break;
            case static::T_AUDIO:
                return t('Audio');
                break;
            case static::T_DOCUMENT:
                return t('Document');
                break;
            case static::T_APPLICATION:
                return t('Application');
                break;
            case static::T_UNKNOWN:
                return t('File');
                break;

        }
    }
public static function getGenericTypeText ( $ type ) { switch ( $ type ) { case static :: T_IMAGE : return t ( 'Image' ) ; break ; case static :: T_VIDEO : return t ( 'Video' ) ; break ; case static :: T_TEXT : return t ( 'Text' ) ; break ; case static :: T_AUDIO : return t ( 'Audio' ) ; break ; case static :: T_DOCUMENT : return t ( 'Document' ) ; break ; case static :: T_APPLICATION : return t ( 'Application' ) ; break ; case static :: T_UNKNOWN : return t ( 'File' ) ; break ; } }
Get the name of a generic file type.

@param int $type Generic category type (one of the \Concrete\Core\File\Type\Type::T_... constants)

@return string|null Returns null if the type is not recognized, its translated display name otherwise
Get the name of a generic file type .