81           if (is_callable($this->
template))
 
   83                return call_user_func($this->
template, $row);
 
   85           else return $row->format($this->
template);
 
  100           $this->colspan = $colspan;
 
  101           $this->style = $style;
 
  157           $this->callback = $callback;       
 
  167           return call_user_func($this->callback);
 
  184      function FooterTotalColumn($field, $template = 
"", $style = 
"", $colspan = 1, $typeHint = Number)
 
  186           $this->field = $field;
 
  187           $this->typeHint = $typeHint;
 
  194           if (!is_callable($this->field) && strpos($this->field, 
"$", 0) !== FALSE)
 
  196                $this->typeHint = Currency;
 
  197                $this->field = substr($this->field, 1); 
 
  207           if (preg_match(
"/:(.*?)}/", $this->field, $matches))
 
  209                $this->
template = $matches[1];
 
  210                $this->field = str_replace($matches[1], 
"", $this->field);
 
  218           if (is_callable($this->field))
 
  220                $val = call_user_func($this->field, $item);
 
  224                $val = $item->format($this->field);
 
  228           $val = str_replace(
",", 
"", $val);
 
  230           $this->total += $val;
 
  235           if(!$this->typeHint || $this->typeHint == Number)
 
  239           elseif($this->typeHint == Currency)
 
  245           $out .= $renderer->format($this->total, $this->
template);
 
Represents a column in a DataListView output table.
DataColumn($title, $template, $sortable=true, $style=null, $typeHint=null, $onExport=null, $sortFormat=null)
Creates a new DataColumn.
$template
The formatting template or formatter function for this data column.
format($row)
Outputs the text for the column using the given row.
$sortFormat
Optional explicit format to use as the basis for sorting.
$sortable
Boolean value indicating whether this column is sortable.
$style
Any CSS styles to be applied to this column.
$onExport
Optional user callback function for exporting the column.
$exportOnly
Boolean value indicating that the column should only be rendered when exporting to Excel.
$typeHint
Hint to the Excel formatter about the data type to export.
$title
The title text for this column.
Text footer column definition.
FooterTextColumn($text="", $style="", $colspan=1)
Creates a new FooterTextColumn.
$text
The text to display in this footer column.
format()
Renderering function for the footer column.