PHP Class KGzocha\Searcher\Chain\ChainSearch
It will perform all (not skipped) sub-searches, transform theirs results into CriteriaCollection
and pass those criteria to next sub-search.
At the end it will return collection of all the results from all the steps.
Show file
Open project: krzysztof-gzocha/searcher
Public Methods
Method |
Description |
|
__construct ( KGzocha\Searcher\Chain\Collection\CellCollectionInterface $cellCollection ) |
|
|
search ( KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteriaCollection ) : ResultCollection |
Will perform multiple sub-searches. |
|
Private Methods
Method |
Description |
|
getNewCriteria ( KGzocha\Searcher\Chain\CellInterface $cell, KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteria, mixed $results ) : KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface |
If $cell has transformer then it will be used to return new criteria. |
|
Method Details
__construct()
public method
public __construct ( KGzocha\Searcher\Chain\Collection\CellCollectionInterface $cellCollection ) |
$cellCollection |
KGzocha\Searcher\Chain\Collection\CellCollectionInterface |
|
Results from first search will be transformed and passed as CriteriaCollection
to another sub-search.
Whole process will return collection of results from each sub-search.
public search ( KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteriaCollection ) : ResultCollection |
$criteriaCollection |
KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface |
|
return |
KGzocha\Searcher\Result\ResultCollection |
|