PHP 클래스 Tdt\Core\ContentNegotiator

저자: Michiel Vancoillie ([email protected])
상속: extends Pager
파일 보기 프로젝트 열기: tdt/core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$mime_types_map Map MIME-types on formatters for Accept-header

공개 메소드들

메소드 설명
getResponse ( Tdt\Core\Datasets\Data $data, string $extension = null ) : Response Format using requested formatter (via extension, Accept-header or default)

비공개 메소드들

메소드 설명
createXmlResponse ( $data )
fetchUrl ( string $extension = '' ) : string Fetch the url without the extension

메소드 상세

getResponse() 공개 정적인 메소드

Format using requested formatter (via extension, Accept-header or default)
public static getResponse ( Tdt\Core\Datasets\Data $data, string $extension = null ) : Response
$data Tdt\Core\Datasets\Data The data object on which the response will be based
$extension string The preferred format in which the data should be returned
리턴 Response

프로퍼티 상세

$mime_types_map 공개적으로 정적으로 프로퍼티

Map MIME-types on formatters for Accept-header
public static $mime_types_map