PHP 클래스 CRUDlex\MimeTypes

파일 보기 프로젝트 열기: philiplb/crudlex 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$mimeTypes THX to http://stackoverflow.com/questions/134833/how-do-i-find-the-mime-type-of-a-file-with-php

공개 메소드들

메소드 설명
getMimeType ( string $file ) : string Function to get the mimetype of a file.
getMimeTypeByExtension ( string $file ) : string Gets the mime type by just looking at the extension.
getMimeTypeByFileInfo ( string $file ) : mixed | string Gets the mime type by looking at the file info.

메소드 상세

getMimeType() 공개 메소드

Function to get the mimetype of a file.
public getMimeType ( string $file ) : string
$file string the file to get the mimetype from
리턴 string the mimetype

getMimeTypeByExtension() 공개 메소드

Gets the mime type by just looking at the extension.
public getMimeTypeByExtension ( string $file ) : string
$file string the file to get the mimetype from
리턴 string the mimetype

getMimeTypeByFileInfo() 공개 메소드

Gets the mime type by looking at the file info.
public getMimeTypeByFileInfo ( string $file ) : mixed | string
$file string the file to get the mimetype from
리턴 mixed | string the mimetype

프로퍼티 상세

$mimeTypes 보호되어 있는 프로퍼티

THX to http://stackoverflow.com/questions/134833/how-do-i-find-the-mime-type-of-a-file-with-php
protected $mimeTypes