\TbSumOperation

TbSumOperation class

Displays a total of specified column name.

Summary

Methods
Properties
Constants
init()
run()
processValue()
displaySummary()
$template
$value
$label
$column
No constants found
extractNumber()
$total
$supportedTypes
N/A
No private methods found
No private properties found
N/A

Properties

$template

$template : string

Type

string — the template to display label and value of the operation at the summary

$value

$value : int

Type

int — the resulted value of operation

$label

$label : string

Type

string — the label of the calculated value

$total

$total : float

Type

float — the total sum

$supportedTypes

$supportedTypes : array

Type

array — the supported type of values

Methods

init()

init()

Widget's initialization method

Throws

\CException

run()

run()

Widget's run method

processValue()

processValue(mixed $value) : mixed|void

Process the value to calculate

Parameters

mixed $value

Returns

mixed|void

displaySummary()

displaySummary() : mixed|void

Displays the summary

Returns

mixed|void

extractNumber()

extractNumber(int $value) : bool

Extracts the digital part of the calculated value.

Parameters

int $value

Returns

bool