GroupedSelection
class GroupedSelection extends Selection
Representation of filtered table grouped by some column.
GroupedSelection is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
Properties
protected Selection | $refTable | ||
protected mixed | $refCacheCurrent | ||
protected string | $column | ||
protected int | $active |
Methods
Creates filtered and grouped table representation.
Sets active group.
Executes aggregation function.
Counts number of rows.
No description
Returns Selection parent for caching.
Loads refCache references
Updates all rows in result set.
Deletes all rows in result set.
Details
at line 41
__construct(Selection $refTable, $table, $column)
Creates filtered and grouped table representation.
at line 55
GroupedSelection
setActive($active)
internal |
Sets active group.
at line 62
Selection
select($columns)
Adds select clause, more calls appends to the end.
at line 72
Selection
order($columns)
Adds order clause, more calls appends to the end.
at line 86
string
aggregation($function)
Executes aggregation function.
at line 112
int
count($column = NULL)
Counts number of rows.
at line 122
protected
execute()
No description
at line 174
protected Selection
getRefTable($refPath)
Returns Selection parent for caching.
at line 187
protected
loadRefCache()
Loads refCache references
at line 206
IRow|int|bool
insert($data)
Inserts row in a table.
at line 224
int
update($data)
Updates all rows in result set.
Joins in UPDATE are supported only in MySQL
at line 237
int
delete()
Deletes all rows in result set.