Properties

$columnCols

$columnCols : 

Type

$columnColsAliases

$columnColsAliases : 

Type

$addedCols

$addedCols : 

Type

$groupedData

$groupedData : 

Type

$groups

$groups : 

Type

Methods

__construct()

__construct(\Weby\Sloth\Sloth  $sloth,   $groupCols,   $columnCols,   $valueCols) 

Parameters

\Weby\Sloth\Sloth $sloth
$groupCols
$columnCols
$valueCols

count()

count(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

accum()

accum(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

avg()

avg(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

first()

first(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

median()

median(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

max()

max(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

min()

min(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

mode()

mode(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

sum()

sum(string  $fieldName = null, array  $options = null) : \Weby\Sloth\Operation\Pivot

Parameters

string $fieldName
array $options

Returns

\Weby\Sloth\Operation\Pivot

addColumn()

addColumn(string  $name, mixed  $value = null) : \Weby\Sloth\Operation\Pivot

Adds additional column to the output.

Parameters

string $name
mixed $value

Returns

\Weby\Sloth\Operation\Pivot

setScale()

setScale(  $scale) 

Parameters

$scale

perform()

perform() 

{@inheritDoc}

beginPerform()

beginPerform() 

doPerform()

doPerform() 

endPerform()

endPerform() 

addGroup()

addGroup(  $key,   $row) 

Parameters

$key
$row

updateGroup()

updateGroup(  $key,   $row) 

Parameters

$key
$row

backPropagateColumn()

backPropagateColumn(  $col) 

Parameters

$col

propagateColumns()

propagateColumns(  $row) 

Parameters

$row

getGroupKey()

getGroupKey(  $row) 

Parameters

$row

resetGroups()

resetGroups() 

isGroup()

isGroup(  $key) 

Parameters

$key