You are here

function FrxReportGenerator::format_data in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 FrxReportGenerator.inc \FrxReportGenerator::format_data()
  2. 7.2 FrxReportGenerator.inc \FrxReportGenerator::format_data()
  3. 7.4 FrxReportGenerator.inc \FrxReportGenerator::format_data()

File

./FrxReportGenerator.inc, line 146
Common functions used throughout the project but loaded in this file to keep the module file lean.

Class

FrxReportGenerator

Code

function format_data($value, $format, $format_str, $teng = '') {
  $fo = $this
    ->get_formatter($format);
  if ($fo) {
    $ret = $fo
      ->{$format}($value, $format_str, $teng);
  }
  else {
    $ret = $value;
  }
  return $ret;
}