PHP Class WhPercentOfTypeOperation

Renders a summary based on the percent count of specified types. For example, if a value has a type 'blue', this class will count the percentage number of times the value 'blue' has on that column.
Author: Antonio Ramirez ([email protected])
Inheritance: extends WhCountOfTypeOperation
Afficher le fichier Open project: 2amigos/yiiwheels Class Usage Examples

Méthodes publiques

Свойство Type Description
$typeTemplate string

Protected Properties

Свойство Type Description
$_total integer holds the total sum of the values. Required to get the percentage.

Méthodes publiques

Méthode Description
displaySummary ( ) : mixed | void

Méthodes protégées

Méthode Description
getTotal ( ) : integer Returns the total of types

Method Details

displaySummary() public méthode

See also: TbOperation
public displaySummary ( ) : mixed | void
Résultat mixed | void

getTotal() protected méthode

Returns the total of types
protected getTotal ( ) : integer
Résultat integer holds

Property Details

$_total protected_oe property

holds the total sum of the values. Required to get the percentage.
protected int $_total
Résultat integer

$typeTemplate public_oe property

See also: TbCountOfTypeOperation
public string $typeTemplate
Résultat string