You are here

public static function Frx::Template in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 Frx.inc \Frx::Template()
  2. 7.4 Frx.inc \Frx::Template()

Returns an object of the template class that has a method named templates.

Return value

FrxTemplate

1 call to Frx::Template()
forena_query_preview in ./forena_query.inc

File

./Frx.inc, line 151
Frx.incL General Forena Reporting Class

Class

Frx

Code

public static function Template($class) {
  FrxReportGenerator::instance()
    ->supported_templates();
  if (class_exists($class)) {
    return new $class();
  }
}