function FrxReportGenerator::format_data in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 FrxReportGenerator.inc \FrxReportGenerator::format_data()
- 7.3 FrxReportGenerator.inc \FrxReportGenerator::format_data()
- 7.4 FrxReportGenerator.inc \FrxReportGenerator::format_data()
File
- ./
FrxReportGenerator.inc, line 414 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
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;
}