src/ChickenWire/Core/Mime.php
public static function byContentType($contentType, $quality = 1.0)
		{

			// Look it up
			if (!array_key_exists($contentType, self::$contentTypeMap)) {
				return false;
			} else {

				return new Mime(self::$contentTypeMap[$contentType], $quality);

			}

		}
public static function byContentType($contentType, $quality = 1.0)
		{

			// Look it up
			if (!array_key_exists($contentType, self::$contentTypeMap)) {
				return false;
			} else {

				return new Mime(self::$contentTypeMap[$contentType], $quality);

			}

		}
public static function byContentType ( $ contentType , $ quality = 1.0 ) { // Look it up if ( ! array_key_exists ( $ contentType , self :: $ contentTypeMap ) ) { return false ; } else { return new Mime ( self :: $ contentTypeMap [ $ contentType ] , $ quality ) ; } }
Find a Mime type by a contentType
@param  string $contentType The content type to look for, such as application/pdf.
@param  float $quality    (default: 1) The quality of the mime in a HTTP Accept header (i.e. it's rank)
@return Mime|false      A Mime instance, or false when contentType is not known.
Find a Mime type by a contentType