QuadIteratorAggregateInterface
extends
IteratorAggregate
in
Description of QuadIteratorAggregateInterface
Tags
Table of Contents
Methods
- getIterator() : QuadIteratorInterface
- Returns QuadIteratorInterface iterating over dataset's quads.
Methods
getIterator()
Returns QuadIteratorInterface iterating over dataset's quads.
public
getIterator([QuadCompareInterface|QuadIteratorInterface|QuadIteratorAggregateInterface|callable|null $filter = null ]) : QuadIteratorInterface
If $filter is provided, the iterator includes only quads matching the filter.
$filter can be specified as:
- An object implementing the \rdfInterface\QuadCompareInterface (e.g. a single Quad)
- An object implementing the \rdfInterface\QuadIteratorInterface (e.g. another Dataset)
- A callable with signature
fn(\rdfInterface\QuadInterface, \rdfInterface\DatasetInterface): bool
All quads for which the callable returns true are copied.
Parameters
- $filter : QuadCompareInterface|QuadIteratorInterface|QuadIteratorAggregateInterface|callable|null = null