EmptyResultSet
in package
implements
IResultSet, Countable
EmptyResultSet contains only the id field.
Used for LazyLoading.
Tags
Table of Contents
Interfaces
- IResultSet
- Countable
Methods
- __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
__get()
Returns a column of the actual row
public
__get(mixed $name) : mixed
Parameters
- $name : mixed
__isset()
public
__isset(mixed $name) : mixed
Parameters
- $name : mixed
count()
Returns one
public
count() : int
Return values
intcurrent()
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
IResultSetgetNamespace()
public
getNamespace() : mixed
hasColumns()
public
hasColumns() : bool
Return values
boolkey()
public
key() : mixed
next()
public
next() : 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
ResultSetresetNodes()
Resets the join path stack.
public
resetNodes() : ResultSet
Using properties via __get calls return the columns of the selected join path.
Return values
ResultSetrewind()
public
rewind() : 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
ResultSetvalid()
public
valid() : bool