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
Show file Open project: 2amigos/yiiwheels Class Usage Examples

Public Properties

Property Type Description
$typeTemplate string

Protected Properties

Property Type Description
$_total integer holds the total sum of the values. Required to get the percentage.

Public Methods

Method Description
displaySummary ( ) : mixed | void

Protected Methods

Method Description
getTotal ( ) : integer Returns the total of types

Method Details

displaySummary() public method

See also: TbOperation
public displaySummary ( ) : mixed | void
return mixed | void

getTotal() protected method

Returns the total of types
protected getTotal ( ) : integer
return integer holds

Property Details

$_total protected property

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

$typeTemplate public property

See also: TbCountOfTypeOperation
public string $typeTemplate
return string