Merge "Remove execute bits from non-executable files"
[lhc/web/wiklou.git] / includes / libs / mime / MimeAnalyzer.php
index 565c157..c361fdf 100644 (file)
@@ -1144,6 +1144,15 @@ EOT;
                return MEDIATYPE_UNKNOWN;
        }
 
+       /**
+        * Returns an array of media types (MEDIATYPE_xxx constants)
+        *
+        * @return array
+        */
+       public function getMediaTypes() {
+               return array_keys( $this->mediaTypes );
+       }
+
        /**
         * Get the MIME types that various versions of Internet Explorer would
         * detect from a chunk of the content.