PHP 클래스 Tdt\Core\Datasets\DatasetController

저자: Michiel Vancoillie ([email protected])
저자: Jan Vansteenlandt ([email protected])
상속: extends Tdt\Core\ApiController
파일 보기 프로젝트 열기: tdt/core

공개 메소드들

메소드 설명
createXMLResponse ( $data ) : Response Return an XML response
fetchData ( string $identifier ) : Tdt\Core\Datasets\Data Check if a uri resembles a definition, if so return a data object
get ( string $uri ) : Response Retrieve a Data object identified by $uri
head ( string $uri ) : Response Return a HEAD response indicating if a URI is reachable for the user agent

비공개 메소드들

메소드 설명
applyRestFilter ( mixed $data, array $rest_params ) : mixed Apply RESTful filtering of the data (case insensitive)
applyThrottle ( array $definition ) : Response Throttle on the basis of source type
keyExists ( array $array, string $property ) : boolean Case insensitive search for a key in an array
processURI ( string $uri ) : array Process the URI and return the extension (=format) and the resource identifier URI
propertyExists ( stdClass $object, string $property ) : boolean Case insensitive search for a property of an object

메소드 상세

createXMLResponse() 공개 메소드

Return an XML response
public createXMLResponse ( $data ) : Response
리턴 Response

fetchData() 공개 정적인 메소드

Check if a uri resembles a definition, if so return a data object
public static fetchData ( string $identifier ) : Tdt\Core\Datasets\Data
$identifier string The identifier of a resource
리턴 Tdt\Core\Datasets\Data

get() 공개 메소드

Retrieve a Data object identified by $uri
public get ( string $uri ) : Response
$uri string The identifier that identifies a resource
리턴 Response

head() 공개 메소드

Return a HEAD response indicating if a URI is reachable for the user agent
public head ( string $uri ) : Response
$uri string The identifier that identifies a resource
리턴 Response