Property | Type | Description | |
---|---|---|---|
$mime_types_map | Map MIME-types on formatters for Accept-header |
Method | Description | |
---|---|---|
getResponse ( Tdt\Core\Datasets\Data $data, string $extension = null ) : Response | Format using requested formatter (via extension, Accept-header or default) |
Method | Description | |
---|---|---|
createXmlResponse ( $data ) | ||
fetchUrl ( string $extension = '' ) : string | Fetch the url without the extension |
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 |
return | Response |