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.
No description
No description
No description
No description
Loads refCache references
No description
Updates all rows in result set.
Deletes all rows in result set.
Details
at line 43
__construct(Context $context, IConventions $conventions, $tableName, $column, Selection $refTable, IStorage $cacheStorage = null)
Creates filtered and grouped table representation.
at line 57
GroupedSelection
setActive($active)
internal |
Sets active group.
at line 67
Selection
select($columns, ...$params)
No description
at line 80
Selection
order($columns, ...$params)
No description
at line 97
int
aggregation($function, $groupFunction = null)
No description
at line 135
int
count($column = null)
No description
at line 145
protected
execute()
No description
at line 200
protected Selection
getRefTable($refPath)
No description
at line 213
protected
loadRefCache()
Loads refCache references
at line 229
protected
emptyResultSet($saveCache = true, $deleteRererencedCache = true)
No description
at line 238
ActiveRow|int|bool
insert($data)
Inserts row in a table.
at line 256
int
update($data)
Updates all rows in result set.
Joins in UPDATE are supported only in MySQL
at line 269
int
delete()
Deletes all rows in result set.