px-files/_sys/php/px.php
private function get_default_mime_type( $path = null ){
		$rtn = null;
		if(@!strlen($path)){
			$path = $this->req()->get_request_file_path();
		}
		$extension = $this->get_path_proc_type( $path );
		switch( strtolower( $extension ) ){
			case 'pass':
			case 'ignore':
			case 'direct':
				$extension = pathinfo( $path , PATHINFO_EXTENSION );
				break;
			default:
				break;
		}

		switch( strtolower( $extension ) ){
			case 'css':
				$rtn = 'text/css';
				break;
			case 'js':
				$rtn = 'text/javascript';
				break;
			case 'html':
			case 'htm':
			case 'shtml':
			case 'shtm':
			case 'xbm':
				$rtn = 'text/html';
				break;
			case 'png': $rtn = 'image/png'; break;
			case 'gif': $rtn = 'image/gif'; break;
			case 'jpg':case 'jpeg':case 'jpe': $rtn = 'image/jpeg'; break;
			case 'svg':case 'svgz': $rtn = 'image/svg+xml'; break;
			case 'csv': $rtn = 'text/comma-separated-values'; break;
			case 'tsv': $rtn = 'text/tab-separated-values'; break;
			case 'pdf': $rtn = 'application/pdf'; break;
			case 'swf': $rtn = 'application/x-shockwave-flash'; break;
			case 'txt':case 'text':
			default:
				$rtn = 'text/plain'; break;
		}
		return $rtn;
	}
private function get_default_mime_type( $path = null ){
		$rtn = null;
		if(@!strlen($path)){
			$path = $this->req()->get_request_file_path();
		}
		$extension = $this->get_path_proc_type( $path );
		switch( strtolower( $extension ) ){
			case 'pass':
			case 'ignore':
			case 'direct':
				$extension = pathinfo( $path , PATHINFO_EXTENSION );
				break;
			default:
				break;
		}

		switch( strtolower( $extension ) ){
			case 'css':
				$rtn = 'text/css';
				break;
			case 'js':
				$rtn = 'text/javascript';
				break;
			case 'html':
			case 'htm':
			case 'shtml':
			case 'shtm':
			case 'xbm':
				$rtn = 'text/html';
				break;
			case 'png': $rtn = 'image/png'; break;
			case 'gif': $rtn = 'image/gif'; break;
			case 'jpg':case 'jpeg':case 'jpe': $rtn = 'image/jpeg'; break;
			case 'svg':case 'svgz': $rtn = 'image/svg+xml'; break;
			case 'csv': $rtn = 'text/comma-separated-values'; break;
			case 'tsv': $rtn = 'text/tab-separated-values'; break;
			case 'pdf': $rtn = 'application/pdf'; break;
			case 'swf': $rtn = 'application/x-shockwave-flash'; break;
			case 'txt':case 'text':
			default:
				$rtn = 'text/plain'; break;
		}
		return $rtn;
	}
デフォルトの MIME Type を取得する。

@param string $path パス
@return string MIME Type