protected static function _getList($type) {
        $types = array();

        foreach (self::$_types as $ext => $mimeType) {
            if (is_array($mimeType)) {
                $mimeType = $mimeType[0];
            }

            if (strpos($mimeType, $type) === 0) {
                $types[$ext] = $mimeType;
            }
        }

        return $types;
    }
protected static function _getList($type) {
        $types = array();

        foreach (self::$_types as $ext => $mimeType) {
            if (is_array($mimeType)) {
                $mimeType = $mimeType[0];
            }

            if (strpos($mimeType, $type) === 0) {
                $types[$ext] = $mimeType;
            }
        }

        return $types;
    }
protected static function _getList ( $ type ) { $ types = array ( ) ; foreach ( self :: $ _types as $ ext => $ mimeType ) { if ( is_array ( $ mimeType ) ) { $ mimeType = $ mimeType [ 0 ] ; } if ( strpos ( $ mimeType , $ type ) === 0 ) { $ types [ $ ext ] = $ mimeType ; } } return $ types ; }
Generate a list of mime types that start with the defined type.

@param string $type
@return array
Generate a list of mime types that start with the defined type .