PHP Class TbSumOperation

Displays a total of specified column name.
Inheritance: extends TbOperation
ファイルを表示 Open project: yinhe/yincart

Protected Properties

Property Type Description
$supportedTypes array the supported type of values
$total float the total sum

Public Methods

Method Description
displaySummary ( ) : mixed | void Displays the summary
init ( ) Widget's initialization method
processValue ( $value ) : mixed | void Process the value to calculate

Protected Methods

Method Description
extractNumber ( integer $value ) : boolean Extracts the digital part of the calculated value.

Method Details

displaySummary() public method

Displays the summary
public displaySummary ( ) : mixed | void
return mixed | void

extractNumber() protected method

Extracts the digital part of the calculated value.
protected extractNumber ( integer $value ) : boolean
$value integer
return boolean

init() public method

Widget's initialization method
public init ( )

processValue() public method

Process the value to calculate
public processValue ( $value ) : mixed | void
$value
return mixed | void

Property Details

$supportedTypes protected_oe property

the supported type of values
protected array $supportedTypes
return array

$total protected_oe property

the total sum
protected float $total
return float