EmptyResultSet
in package
implements
IResultSet, Countable
EmptyResultSet contains only the id field.
Used for LazyLoading.
Tags
Interfaces, Classes, Traits and Enums
- IResultSet
- Countable
Table of Contents
- __construct() : mixed
- __get() : mixed
- Returns a column of the actual row
- __isset() : mixed
- count() : int
- Returns one
- current() : array<string|int, mixed>
- extractNode() : IResultSet
- getNamespace() : mixed
- hasColumns() : bool
- key() : mixed
- next() : void
- popNode() : ResultSet
- Pops a node off of the join path stack.
- resetNodes() : ResultSet
- Resets the join path stack.
- rewind() : void
- selectNode() : ResultSet
- Adds a node on top of the join path stack.
- valid() : bool
Methods
__construct()
public
__construct(mixed $id) : mixed
Parameters
- $id : mixed
Return values
mixed —__get()
Returns a column of the actual row
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —__isset()
public
__isset(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —count()
Returns one
public
count() : int
Return values
int —current()
public
current() : array<string|int, mixed>
Return values
array<string|int, mixed> —extractNode()
public
extractNode(string $join[, string|null $idColumn = null ]) : IResultSet
Parameters
- $join : string
- $idColumn : string|null = null
Return values
IResultSet —getNamespace()
public
getNamespace() : mixed
Return values
mixed —hasColumns()
public
hasColumns() : bool
Return values
bool —key()
public
key() : mixed
Return values
mixed —next()
public
next() : void
Return values
void —popNode()
Pops a node off of the join path stack.
public
popNode() : ResultSet
Using properties via __get calls return the columns of the selected join path.
Use ResultSet::selectNode() to push a node on top and ResultSet::resetNodes()
to remove all
Return values
ResultSet —resetNodes()
Resets the join path stack.
public
resetNodes() : ResultSet
Using properties via __get calls return the columns of the selected join path.
Return values
ResultSet —rewind()
public
rewind() : void
Return values
void —selectNode()
Adds a node on top of the join path stack.
public
selectNode(string $join) : ResultSet
Using properties via __get calls return the columns of the selected join path.
Use ResultSet::popNode() to pop the last added node and ResultSet::resetNodes()
to remove all
Parameters
- $join : string
Return values
ResultSet —valid()
public
valid() : bool