Framework  3.9
FooterValueColumn Class Reference

Value footer column definition. More...

+ Inheritance diagram for FooterValueColumn:
+ Collaboration diagram for FooterValueColumn:

Public Member Functions

 FooterValueColumn ($callback, $style="", $colspan=1)
 Creates a new FooterValueColumn. More...
 
 format ()
 Renderering function for the footer column. More...
 

Public Attributes

 $callback
 Callback function or object method used to calculate the value. More...
 

Detailed Description

Value footer column definition.

Author
andy

Definition at line 145 of file data_column.inc.

Member Function Documentation

◆ FooterValueColumn()

FooterValueColumn::FooterValueColumn (   $callback,
  $style = "",
  $colspan = 1 
)

Creates a new FooterValueColumn.

Parameters
$callbackCallback function or object method used to calculate the value for this column.
$styleany CSS classes or inline styles to apply
$colspanthe colspan for the column

Definition at line 155 of file data_column.inc.

156  {
157  $this->callback = $callback;
158  $this->FooterColumn($style, $colspan);
159  }

◆ format()

FooterValueColumn::format ( )

Renderering function for the footer column.

Returns
string

Reimplemented from FooterColumn.

Definition at line 165 of file data_column.inc.

166  {
167  return call_user_func($this->callback);
168  }

Member Data Documentation

◆ $callback

FooterValueColumn::$callback

Callback function or object method used to calculate the value.

Definition at line 147 of file data_column.inc.


The documentation for this class was generated from the following file: