You are here

public function ForenaViewsPlugin::render in Forena Reports 7.3

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

Render the display in this style.

Overrides views_plugin_style::render

File

./ForenaViewsPlugin.inc, line 30
ForenaViewsPlugin.inc Views plugin to use forena report as a views renderer. @author davidmetzler

Class

ForenaViewsPlugin
@file ForenaViewsPlugin.inc Views plugin to use forena report as a views renderer. @author davidmetzler

Code

public function render() {

  // Group the rows according to the grouping instructions, if specified.
  $output = '';
  $sets = $this
    ->render_grouping($this->view->result, $this->options['grouping'], TRUE);
  $filename = $this->options['report_name'] . '.frx';
  if (Frx::File()
    ->exists($filename)) {
    $output = forena_report($this->options['report_name'], $this->rendered_fields, FALSE);
  }
  return $output;
}