\TbCountOfTypeOperation

TbCountOfTypeOperation class

Renders a summary based on the count of specified types. For example, if a value has a type 'blue', this class will count the number of times the value 'blue' has on that column.

Summary

Methods
Properties
Constants
init()
run()
processValue()
displaySummary()
$template
$value
$label
$column
$typeTemplate
$types
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$template

$template : string

Type

string

$value

$value : int

Type

int — the resulted value of operation

$label

$label : string

Type

string — the label of the calculated value

$typeTemplate

$typeTemplate : string

Type

string — holds the template of each calculated type

$types

$types : array

Type

array — hold the configuration of types to calculate. The configuration is set by an array which keys are the value types to count. You can set their 'label' independently. <pre> 'types' => array( '0' => array('label' => 'zeros'), '1' => array('label' => 'ones'), '2' => array('label' => 'twos') </pre>

Methods

init()

init()

Widget's initialization

Throws

\CException

run()

run()

Widget's run method

processValue()

processValue(mixed $value) : mixed|void

(no phpDoc)

Parameters

mixed $value

Returns

mixed|void

displaySummary()

displaySummary() : mixed|void

(no phpDoc)

Returns

mixed|void