You are here

function FrxReportGenerator::supported_formats in Forena Reports 6.2

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

File

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

Class

FrxReportGenerator

Code

function supported_formats() {
  $controls = $this
    ->define_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;
}