SeekableIterator
, JsonSerializable
, Countable
The rowset gateway.
int
$index# = 0array
$rows#mixed
$row# = "\pq\Gateway\Row"Create a new rowset gateway.
void
pq\Gateway\Rowset::__construct(pq\Gateway\Table $table[, pq\Result $result = NULL
])
Copy constructor.
pq\Gateway\Rowset pq\Gateway\Rowset::__invoke([pq\Result $result = NULL
])
Append a row to the rowset.
pq\Gateway\Rowset pq\Gateway\Rowset::append(pq\Gateway\Row $row)
Apply a callback
to each row of this rowset.
Implements Countable
.
Create all rows in this rowset.
pq\Gateway\Rowset pq\Gateway\Rowset::create([mixed
$txn = TRUE
])
Implements Iterator
.
Delete all rows in this rowset.
pq\Gateway\Rowset pq\Gateway\Rowset::delete([mixed
$txn = TRUE
])
Filter the rows a copy of the rowset should contain.
Retrieve the row prototype.
Retrieve the rows this rowset contains.
Retrieve the table from which this rowset originates.
Hydrate a result.
protected pq\Gateway\Rowset pq\Gateway\Rowset::hydrate([pq\Result $result = NULL
])
Implements JsonSerializable
.
Implements Iterator
.
Implements Iterator
.
Implements Iterator
.
Implements SeekableIterator
.
Set the row prototype.
pq\Gateway\Rowset pq\Gateway\Rowset::setRowPrototype(mixed
$row)
Update all rows in this rowset.
pq\Gateway\Rowset pq\Gateway\Rowset::update([mixed
$txn = TRUE
])
Implements Iterator
.