protected static function getTypeFileExtList($file) {

		$info = pathinfo(strtolower($file));

		if(isset(self::$extensionToMime[$info['extension']])) {
			return self::$extensionToMime[$info['extension']];
		}
		else {
			return self::DEFAULT_MIME_TYPE;
		}

	}
protected static function getTypeFileExtList($file) {

		$info = pathinfo(strtolower($file));

		if(isset(self::$extensionToMime[$info['extension']])) {
			return self::$extensionToMime[$info['extension']];
		}
		else {
			return self::DEFAULT_MIME_TYPE;
		}

	}
protected static function getTypeFileExtList ( $ file ) { $ info = pathinfo ( strtolower ( $ file ) ) ; if ( isset ( self :: $ extensionToMime [ $ info [ 'extension' ] ] ) ) { return self :: $ extensionToMime [ $ info [ 'extension' ] ] ; } else { return self :: DEFAULT_MIME_TYPE ; } }
extracts the file extension and checks the extension array
for the extension. If it is found it returns the MIME type.
If not it returns the the default MIME type.

@param string $file the path to the file
@return string
extracts the file extension and checks the extension array for the extension . If it is found it returns the MIME type . If not it returns the the default MIME type .