PHP Class WhSumOperation

Displays a total of specified column name
Author: Antonio Ramirez ([email protected])
Inheritance: extends WhOperation
Show file Open project: 2amigos/yiiwheels

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 property

the supported type of values
protected array $supportedTypes
return array

$total protected property

the total sum
protected float $total
return float