PHP Class WhSumOperation

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

Protected Properties

Свойство Type Description
$supportedTypes array the supported type of values
$total float the total sum

Méthodes publiques

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

Méthodes protégées

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

Method Details

displaySummary() public méthode

Displays the summary
public displaySummary ( ) : mixed | void
Résultat mixed | void

extractNumber() protected méthode

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

init() public méthode

Widget's initialization method
public init ( )

processValue() public méthode

Process the value to calculate
public processValue ( $value ) : mixed | void
$value
Résultat mixed | void

Property Details

$supportedTypes protected_oe property

the supported type of values
protected array $supportedTypes
Résultat array

$total protected_oe property

the total sum
protected float $total
Résultat float