PHP Interface WellCommerce\Component\DataSet\DataSetInterface

Author: Adam Piotrowski ([email protected])
Mostra file Open project: wellcommerce/wellcommerce Interface Usage Examples

Public Methods

Method Description
configureOptions ( WellCommerce\Component\DataSet\Configurator\DataSetConfiguratorInterface $configurator ) Configures dataset options
dispatchOnDataSetInitEvent ( ) : void Dispatches the init event using event-dispatcher service
getColumns ( ) : WellCommerce\Component\DataSet\Column\ColumnCollection Returns dataset columns
getResult ( string $contextType, array $requestOptions = [], array $contextOptions = [] ) : array Returns the dataset's result for given context type and options
setCacheOptions ( CacheOptions $options )
setColumns ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns ) Sets dataset columns
setDefaultContextOption ( string $name, mixed $value ) Adds default context's option
setDefaultRequestOption ( string $name, mixed $value ) Adds default request's option

Method Details

configureOptions() public method

Configures dataset options
public configureOptions ( WellCommerce\Component\DataSet\Configurator\DataSetConfiguratorInterface $configurator )
$configurator WellCommerce\Component\DataSet\Configurator\DataSetConfiguratorInterface

dispatchOnDataSetInitEvent() public method

Dispatches the init event using event-dispatcher service
public dispatchOnDataSetInitEvent ( ) : void
return void

getColumns() public method

Returns dataset columns
public getColumns ( ) : WellCommerce\Component\DataSet\Column\ColumnCollection
return WellCommerce\Component\DataSet\Column\ColumnCollection

getResult() public method

Returns the dataset's result for given context type and options
public getResult ( string $contextType, array $requestOptions = [], array $contextOptions = [] ) : array
$contextType string
$requestOptions array
$contextOptions array
return array

setCacheOptions() public method

public setCacheOptions ( CacheOptions $options )
$options WellCommerce\Component\DataSet\Cache\CacheOptions

setColumns() public method

Sets dataset columns
public setColumns ( WellCommerce\Component\DataSet\Column\ColumnCollection $columns )
$columns WellCommerce\Component\DataSet\Column\ColumnCollection

setDefaultContextOption() public method

Adds default context's option
public setDefaultContextOption ( string $name, mixed $value )
$name string
$value mixed

setDefaultRequestOption() public method

Adds default request's option
public setDefaultRequestOption ( string $name, mixed $value )
$name string
$value mixed