PHP Class WellCommerce\Component\DataSet\Context\FlatTreeContext

Author: Adam Piotrowski ([email protected])
Inheritance: extends ArrayContext
Afficher le fichier Open project: wellcommerce/wellcommerce

Méthodes publiques

Méthode 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

Méthode Description
makeNode ( array &$row, array &$tree ) Converts single row to flat-tree node
makeTree ( array $result ) : array Creates flat tree structure from result rows

Method Details

configureOptions() public méthode

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

getResult() public méthode

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