src/acdhOeaw/schema/file/File.php
public function getMime() {
        switch(strtolower(pathinfo($this->path, PATHINFO_EXTENSION))) {
            case 'json':
                $mime = 'application/json';
                break;
            case 'geojson':
                $mime = 'application/vnd.geo+json';
                break;
            default:
                $mime = @mime_content_type($this->path);
        }
        return $mime;
    }
public function getMime() {
        switch(strtolower(pathinfo($this->path, PATHINFO_EXTENSION))) {
            case 'json':
                $mime = 'application/json';
                break;
            case 'geojson':
                $mime = 'application/vnd.geo+json';
                break;
            default:
                $mime = @mime_content_type($this->path);
        }
        return $mime;
    }
public function getMime ( ) { switch ( strtolower ( pathinfo ( $ this -> path , PATHINFO_EXTENSION ) ) ) { case 'json' : $ mime = 'application/json' ; break ; case 'geojson' : $ mime = 'application/vnd.geo+json' ; break ; default : $ mime = @ mime_content_type ( $ this -> path ) ; } return $ mime ; }
Returns file's mime type
@return string
Returns file s mime type