function FrxReportGenerator::supported_formats in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 FrxReportGenerator.inc \FrxReportGenerator::supported_formats()
- 7.2 FrxReportGenerator.inc \FrxReportGenerator::supported_formats()
- 7.4 FrxReportGenerator.inc \FrxReportGenerator::supported_formats()
File
- ./
FrxReportGenerator.inc, line 194 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Class
Code
function supported_formats() {
$controls = Frx::Controls();
$supported_formats = array();
$f = array();
foreach ($controls as $k => $r) {
$provider = $r;
if ($provider && method_exists($provider, 'formats')) {
$f = $provider
->formats();
$supported_formats = array_merge($supported_formats, $f);
}
}
return $supported_formats;
}