Heyday\Elastica\ResultList
A list wrapper around the results from a query. Note that not all operations are implemented.
Synopsis
class ResultList
extends ViewableData
implements
SS_List
{
- // members
- private Index $index;
- private Query $query;
- private $logger;
- private $resultsArray;
- private ResultSet $resultSet;
- // methods
- public void __construct()
- public void __clone()
- public array getIDs()
- public Index getIndex()
- public Query getQuery()
- public ResultSet getResults()
- public Traversable getIterator()
- public ResultList limit()
- public ResultList sort()
- public array toArray()
- public ArrayList toArrayList()
- public array toNestedArray()
- public mixed first()
- public mixed last()
- public Map map()
- public array column()
- public $this each()
- public int count()
- public int totalItems()
- public void offsetExists()
- public void offsetGet()
- public void offsetSet()
- public void offsetUnset()
- public void add()
- public void remove()
- public void find()
Hierarchy
Extends
- SilverStripe\View\ViewableData
Implements
- SilverStripe\ORM\SS_List
Members
private
- $index — Elastica\Index
- $logger
- $query — Elastica\Query
- $resultSet — Elastica\ResultSet
- $resultsArray
Methods
public
- __construct()
- __clone()
- add()
- column()
- count()
- each()
- find()
- first()
- getIDs() — Get array of IDs of the results
- getIndex()
- getIterator()
- getQuery()
- getResults()
- last()
- limit()
- map()
- offsetExists()
- offsetGet()
- offsetSet()
- offsetUnset()
- remove()
- sort()
- toArray() — Converts results of type {@link \Elastica\Result} into their respective {@link DataObject} counterparts.
- toArrayList()
- toNestedArray()
- totalItems()