You are here

public static function FrxReportGenerator::instance in Forena Reports 7.2

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

File

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

Class

FrxReportGenerator

Code

public static function instance() {
  global $forena_application_class;
  if (!self::$instance) {
    if (!$forena_application_class) {
      $forena_application_class = 'FrxDrupalApplication';
    }
    self::$instance = new FrxReportGenerator($forena_application_class);
  }
  return self::$instance;
}