PHP Interface WellCommerce\Component\DataSet\Context\DataSetContextInterface

Author: Adam Piotrowski ([email protected])
Exibir arquivo Open project: wellcommerce/wellcommerce

Public Methods

Method Description
configure ( array $options = [] ) Configures the context
getResult ( Doctrine\ORM\QueryBuilder $builder, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, CacheOptions $cache ) : array Returns the result of dataset's query

Method Details

configure() public method

Configures the context
public configure ( array $options = [] )
$options array

getResult() public method

Returns the result of dataset's query
public getResult ( Doctrine\ORM\QueryBuilder $builder, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, CacheOptions $cache ) : array
$builder Doctrine\ORM\QueryBuilder
$request WellCommerce\Component\DataSet\Request\DataSetRequestInterface
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
$cache WellCommerce\Component\DataSet\Cache\CacheOptions
return array