PHP Class WhOperation

Abstract class where all types of column operations extend from
Author: Antonio Ramirez ([email protected])
Inheritance: extends CWidget
Show file Open project: 2amigos/yiiwheels Class Usage Examples

Public Properties

Property Type Description
$column WhDataColumn
$label string the label of the calculated value
$template string the template to display label and value of the operation at the summary
$value integer the resulted value of operation

Public Methods

Method Description
displaySummary ( ) : mixed Displays the resulting summary
init ( ) Widget initialization
processValue ( $value ) : mixed Process the row data value
run ( ) Widget's run method

Method Details

displaySummary() abstract public method

Displays the resulting summary
abstract public displaySummary ( ) : mixed
return mixed

init() public method

Widget initialization
public init ( )

processValue() abstract public method

Process the row data value
abstract public processValue ( $value ) : mixed
$value
return mixed

run() public method

Widget's run method
public run ( )

Property Details

$column public property

public WhDataColumn $column
return WhDataColumn

$label public property

the label of the calculated value
public string $label
return string

$template public property

the template to display label and value of the operation at the summary
public string $template
return string

$value public property

the resulted value of operation
public int $value
return integer