TriplesIterator
in package
implements
QuadIteratorInterface
rdfInterface\QuadIteratorInterface wrapper for metadata_view table rows.
Supports caching.
Tags
Table of Contents
Interfaces
- QuadIteratorInterface
Properties
- $baseUrl : string
- $cache : array<string|int, QuadInterface>
- $cacheSize : int
- $idProp : string
- $n : int
- $query : PDOStatement
- $triple : QuadInterface
Methods
- __construct() : mixed
- current() : QuadInterface|null
- key() : int|null
- next() : void
- rewind() : void
- sort() : void
- valid() : bool
- getObject() : TermInterface
Properties
$baseUrl
private
string
$baseUrl
$cache
private
array<string|int, QuadInterface>
$cache
= []
$cacheSize
private
int
$cacheSize
$idProp
private
string
$idProp
$n
private
int
$n
$query
private
PDOStatement
$query
$triple
private
QuadInterface
$triple
Methods
__construct()
public
__construct(PDOStatement $query, string $baseUrl, string $idProp[, int $cacheSize = 0 ]) : mixed
Parameters
- $query : PDOStatement
- $baseUrl : string
- $idProp : string
- $cacheSize : int = 0
current()
public
current() : QuadInterface|null
Return values
QuadInterface|nullkey()
public
key() : int|null
Return values
int|nullnext()
public
next() : void
rewind()
public
rewind() : void
sort()
public
sort() : void
valid()
public
valid() : bool
Return values
boolgetObject()
private
getObject(Triple $triple) : TermInterface
Parameters
- $triple : Triple