$name
$name : string
Function name.
Base class for "group" functions, i.e.
functions that are applied to entire group instead of value columns.
cast( $object) : \Weby\Sloth\Func\Base
"Casts" mixed variable to func.
Auxiliary method for dev purposes. After such cast IDE undestands type of var and we can use code completion functionallity.
| $object |
onAddGroup(array $group, string $groupCol, array $data, string $dataCol, mixed $currValue, mixed $nextValue)
| array | $group | Group of output data. |
| string | $groupCol | Col name of output group. |
| array | $data | Row of input data. |
| string | $dataCol | Col name of input row. |
| mixed | $currValue | Current value of column of input row. |
| mixed | $nextValue | Next value of column of input row. |