You are here

function forena_data in Forena Reports 7.5

Same name and namespace in other branches
  1. 7.4 forena.module \forena_data()

Get the raw data from a block if supported. Note that this may return a simplexml object or a recordset or an array depending on the support provided by the product.

Parameters

unknown $block_name:

unknown $parms:

Return value

Ambigous <unknown, string, NULL>

2 calls to forena_data()
forena_block_xml in ./forena.module
Send report block XML Enter description here ...
forena_json in ./forena.module
Output forena data as JSON objects.

File

./forena.module, line 546

Code

function forena_data($block_name, $parms = array(), $raw_mode = TRUE) {
  include_once 'forena.common.inc';
  drupal_alter('forena_parameters', $block_name, $parms);

  //now invoke the data provider with the correct params
  Frx::Data()
    ->push($parms, 'parm');
  $data = Frx::DataManager()
    ->data($block_name, $raw_mode);
  Frx::Data()
    ->pop();
  return $data;
}