You are here

function forena_report_object in Forena Reports 7

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.5 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:

4 calls to forena_report_object()
forena_get_report in ./forena.common.inc
Accepts the name of a file
forena_parameters_report in ./forena.module
Calls forena_parameter_form in forena.common.inc
forena_parameter_form in ./forena.common.inc
Form to edit parameters Extra features: In the parameters section of the report are new attributes frx:parm: @data_source = data block for the parameter to values from @data_field = specific field of the data block to recieve values from. if no field…
forena_render_report in ./forena.module
Render report with some data

File

./forena.common.inc, line 403
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 FrxReport($report, $data);
  }
  return $object;
}