You are here

function FrxReportGenerator::supported_templates in Forena Reports 7.2

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

Return value

returns an array of supported templates

1 call to FrxReportGenerator::supported_templates()
FrxReportGenerator::get_templates in ./FrxReportGenerator.inc
Returns an object of the template class that has a method named templates.

File

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

Class

FrxReportGenerator

Code

function supported_templates() {
  require_once 'templates/FrxTemplate.inc';
  require_once 'templates/FrxTable.inc';
  require_once 'templates/FrxFieldTable.inc';
  require_once 'templates/FrxEmailMerge.inc';
  require_once 'templates/FrxGraphTemplate.inc';
  require_once 'templates/FrxRptInclude.inc';
  $templates = array(
    'FrxTable' => 'Table',
    'FrxTemplate' => 'Document',
    'FrxEmailMerge' => 'Email Merge',
    'FrxFieldTable' => 'Fields',
    'FrxGraphTemplate' => 'Graph or Chart',
  );
  return $templates;
}