DatabaseResult
in package
Holds the result of a Database query (e.g. read or write).
Table of Contents
Properties
- $dbResult : Result
Methods
- __construct() : mixed
- getNumRecords() : int
- hasRecord() : bool
- record() : DatabaseRecord
- Use when exactly one record is expected from the result set.
- records() : Generator<string|int, DatabaseRecord>
- Use to iterate over the records from the result set.
Properties
$dbResult read-only
private
Result
$dbResult
Methods
__construct()
public
__construct(Result $dbResult) : mixed
Parameters
- $dbResult : Result
getNumRecords()
public
getNumRecords() : int
Return values
inthasRecord()
public
hasRecord() : bool
Return values
boolrecord()
Use when exactly one record is expected from the result set.
public
record() : DatabaseRecord
Return values
DatabaseRecordrecords()
Use to iterate over the records from the result set.
public
records() : Generator<string|int, DatabaseRecord>