|
| __construct (array $options=[]) |
| {} More...
|
|
| count () |
| {Count rows.- Returns
- int
} More...
|
|
| calculate ($function, $property, $property_type= 'annotation') |
| Performs a mathematical calculation on river annotations. More...
|
|
| get ($limit=null, $offset=null, $callback=null) |
| Fetch river items. More...
|
|
| execute () |
| Execute the query resolving calculation, count and/or batch options. More...
|
|
| buildEntityClauses ($qb) |
| Add subject, object and target clauses Make sure all three are accessible by the user. More...
|
|
| __construct (array $options=[]) |
| Constructor. More...
|
|
| __get ($name) |
| {} More...
|
|
| __set ($name, $value) |
| {} More...
|
|
| __unset ($name) |
| {} More...
|
|
| __isset ($name) |
| {} More...
|
|
| batch ($limit=null, $offset=null, $callback=null) |
| {Fetch rows as an ElggBatch.- Parameters
-
int | $limit | Number of rows to fetch |
int | $offset | Index of the first row |
callable | false | $callback | Callback function to run database rows through |
- Returns
- ElggBatch
} More...
|
|
| filter (\Closure $closure) |
| {} More...
|
|
| select ($expression) |
| {Add SELECT.- Parameters
-
- Returns
- static
} More...
|
|
| join ($joined_table, $joined_alias=null, $x=null, $comparison=null, $y=null, $type=null, $case_sensitive=null) |
| {Add JOIN clause Join a database table on an $x to $y comparison.- Parameters
-
string | $joined_table | Name of the table (with or without dbprefix) |
string | $joined_alias | Alias of the joined table If not set, the alias will be assigned automatically |
string | $x | Base column, e.g. 'n_table.entity_guid' This value is NOT a query parameter and will not be sanitized |
string | $comparison | Comparison operator, e.g. '=', 'not like' etc |
mixed | $y | Comparison value(s) |
string | $type | Type of the comparison value(s), e.g. ELGG_VALUE_STRING, ELGG_VALUE_INT |
bool | $case_sensitive | Use case senstivie comparison for string values |
- Returns
- static
} More...
|
|
| groupBy ($expression) |
| {Add GROUP BY.- Parameters
-
string | $expression | Group by |
- Returns
- static
} More...
|
|
| having ($expression) |
| {Add HAVING.- Parameters
-
- Returns
- static
} More...
|
|
| orderBy ($expression, $direction) |
| {Add ORDER BY.- Parameters
-
string | $expression | Column/calculation |
string | $direction | Direction |
- Returns
- static
} More...
|
|
| expandInto (QueryBuilder $qb, $table_alias=null) |
| Extend query builder with select, group_by, having and order_by clauses from $options. More...
|
|
| filter (Closure $closure) |
| Filter query prior to execution Callback function will receive QueryBuilder as the first argument and table alias as a second Callback function can either mutate the instance of the QueryBuilder or return a composition expression that will be appended to AND where statements. More...
|
|
River repository contains methods for fetching/counting river items.
Definition at line 18 of file River.php.