You are here

function forena_report_object in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena.common.inc \forena_report_object()
  2. 6.2 forena.common.inc \forena_report_object()
  3. 6 forena.common.inc \forena_report_object()
  4. 7 forena.common.inc \forena_report_object()
  5. 7.2 forena.common.inc \forena_report_object()
  6. 7.3 forena.common.inc \forena_report_object()
  7. 7.4 forena.common.inc \forena_report_object()

Object factory for forena report When called without a report name, it returns the last created report. This static caching mechanism is used for form functions that are called within a page load.

Parameters

unknown_type $report_name:

1 call to forena_report_object()
forena_parameters_report in ./forena.module
Calls forena_parameter_form in forena.common.inc

File

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

Code

function forena_report_object($report = '', $data = '') {
  static $object = '';
  if ($report) {
    $object = new Report($report, $data);
  }
  return $object;
}