PHP Class WellCommerce\Component\DataSet\Context\AbstractDataSetContext

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Component\DataSet\Context\DataSetContextInterface
显示文件 Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$cacheManager WellCommerce\Component\DataSet\Cache\DataSetCacheManagerInterface
$options array
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessor

Public Methods

Method Description
__construct ( WellCommerce\Component\DataSet\Cache\DataSetCacheManagerInterface $cacheManager ) AbstractDataSetContext constructor.
configure ( array $options = [] )
configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
getResult ( Doctrine\ORM\QueryBuilder $builder, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, CacheOptions $cache )

Protected Methods

Method Description
getPropertyAccessor ( ) : PropertyAccessor
getTransformers ( ) : WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection
transformResult ( array $result ) : array Transforms the results using additional data transformers
transformRow ( array $row, WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection $transformers ) : array Processes the row data

Method Details

__construct() public method

AbstractDataSetContext constructor.
public __construct ( WellCommerce\Component\DataSet\Cache\DataSetCacheManagerInterface $cacheManager )
$cacheManager WellCommerce\Component\DataSet\Cache\DataSetCacheManagerInterface

configure() public method

public configure ( array $options = [] )
$options array

configureOptions() public method

public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver

getPropertyAccessor() protected method

protected getPropertyAccessor ( ) : PropertyAccessor
return Symfony\Component\PropertyAccess\PropertyAccessor

getResult() public method

public getResult ( Doctrine\ORM\QueryBuilder $builder, WellCommerce\Component\DataSet\Request\DataSetRequestInterface $request, WellCommerce\Component\DataSet\Column\ColumnCollection $columns, CacheOptions $cache )
$builder Doctrine\ORM\QueryBuilder
$request WellCommerce\Component\DataSet\Request\DataSetRequestInterface
$columns WellCommerce\Component\DataSet\Column\ColumnCollection
$cache WellCommerce\Component\DataSet\Cache\CacheOptions

getTransformers() protected method

protected getTransformers ( ) : WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection
return WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection

transformResult() protected method

Transforms the results using additional data transformers
protected transformResult ( array $result ) : array
$result array
return array

transformRow() protected method

Processes the row data
protected transformRow ( array $row, WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection $transformers ) : array
$row array
$transformers WellCommerce\Component\DataSet\Transformer\ColumnTransformerCollection
return array

Property Details

$cacheManager protected_oe property

protected DataSetCacheManagerInterface,WellCommerce\Component\DataSet\Cache $cacheManager
return WellCommerce\Component\DataSet\Cache\DataSetCacheManagerInterface

$options protected_oe property

protected array $options
return array

$propertyAccessor protected_oe property

protected PropertyAccessor,Symfony\Component\PropertyAccess $propertyAccessor
return Symfony\Component\PropertyAccess\PropertyAccessor