PHP Class Tdt\Core\Formatters\FormatHelper

Author: Jan Vansteenlandt ([email protected])
显示文件 Open project: tdt/core Class Usage Examples

Public Methods

Method Description
getAvailableFormats ( Tdt\Core\Datasets\Data $data ) : array Return a list of the available formats that the data structure can be formatted into
getFormatsForType ( array $source_definition ) : array Get the available formats based on the type of data source This can differ from the actual available formats (e.g. a SPARQL query can return a results from a construct or a select query, which can or can not be - respectively - be formatted in semantic formats)

Method Details

getAvailableFormats() public method

Return a list of the available formats that the data structure can be formatted into
public getAvailableFormats ( Tdt\Core\Datasets\Data $data ) : array
$data Tdt\Core\Datasets\Data
return array

getFormatsForType() public method

Get the available formats based on the type of data source This can differ from the actual available formats (e.g. a SPARQL query can return a results from a construct or a select query, which can or can not be - respectively - be formatted in semantic formats)
public getFormatsForType ( array $source_definition ) : array
$source_definition array
return array