PHP Class WellCommerce\Component\DataSet\Context\TreeContext

Author: Adam Piotrowski ([email protected])
Inheritance: extends ArrayContext
显示文件 Open project: wellcommerce/wellcommerce

Public Methods

Method Description
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 )

Private Methods

Method Description
buildTree ( array $rows, null $parent = null ) : array Creates nested tree structure from result rows

Method Details

configureOptions() public method

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

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