public static function get_file_type($filename)
    {
        $file_types = self::config()->get('file_types');

        // Get extension
        $extension = strtolower(self::get_file_extension($filename));

        if (isset($file_types[$extension])) {
            return _t(
                __CLASS__ . '.' . ucfirst($extension) . 'Type',
                $file_types[$extension]
            );
        }

        return 'unknown';
    }
public static function get_file_type($filename)
    {
        $file_types = self::config()->get('file_types');

        // Get extension
        $extension = strtolower(self::get_file_extension($filename));

        if (isset($file_types[$extension])) {
            return _t(
                __CLASS__ . '.' . ucfirst($extension) . 'Type',
                $file_types[$extension]
            );
        }

        return 'unknown';
    }
public static function get_file_type ( $ filename ) { $ file_types = self :: config ( ) -> get ( 'file_types' ) ; // Get extension $ extension = strtolower ( self :: get_file_extension ( $ filename ) ) ; if ( isset ( $ file_types [ $ extension ] ) ) { return _t ( __CLASS__ . '.' . ucfirst ( $ extension ) . 'Type' , $ file_types [ $ extension ] ) ; } return 'unknown' ; }
Get descriptive type of file based on filename

@param string $filename
@return string Description of file
Get descriptive type of file based on filename