Definition at line 37 of file query.inc.
◆ __construct()
AbstractQuery::__construct |
( |
|
$class, |
|
|
|
$constraints = "" |
|
) |
| |
Reimplemented in Query, JSONQuery, IteratedQuery, PivotQuery, and AbstractPivotQuery.
Definition at line 44 of file query.inc.
constraints($constraints)
Sets the constraint clause for the Query.
filter($filter)
Sets a filter to constrain the fields retrieved when the query is executed.
params($params)
Sets the bound parameters array.
◆ bind()
Binds placeholders to parameter values.
- Returns
- Query reference to the Query object, to allow for call chaining.
Definition at line 101 of file query.inc.
103 $num = func_num_args();
104 for($i = 0; $i < $num; $i += 2)
106 $this->
params[func_get_arg($i)] = $this->massageSQL(func_get_arg($i + 1));
◆ constraints()
AbstractQuery::constraints |
( |
|
$constraints | ) |
|
Sets the constraint clause for the Query.
- Parameters
-
string | $constraints | the constraint clause; |
- Returns
- Query reference to the Query object, to allow for call chaining.
Definition at line 68 of file query.inc.
◆ execute()
AbstractQuery::execute |
( |
| ) |
|
|
abstract |
◆ filter()
AbstractQuery::filter |
( |
|
$filter | ) |
|
Sets a filter to constrain the fields retrieved when the query is executed.
- Parameters
-
- Returns
- Query reference to the Query object, to allow for call chaining.
Definition at line 79 of file query.inc.
◆ params()
AbstractQuery::params |
( |
|
$params | ) |
|
Sets the bound parameters array.
Generally it is more convenient to call bind() but this method can be useful if the query is being constructed programmatically.
- Parameters
-
$params | the array of placeholders and parameters to bind |
- Returns
- Query reference to the Query object, to allow for call chaining.
Definition at line 91 of file query.inc.
◆ $class
◆ $constraints
AbstractQuery::$constraints |
◆ $filter
◆ $params
The documentation for this class was generated from the following file: