You are here

public function FrxAjax::render in Forena Reports 7.4

Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.

Return value

Ambigous <string, unknown, unknown_type, text, mixed>

Overrides FrxRenderer::render

File

renderers/FrxAjax.inc, line 18

Class

FrxAjax
Crosstab Renderer

Code

public function render() {
  $text = forena_inner_xml($this->reportDocNode, $this->reportDocNode
    ->getName());
  $command = $this
    ->replacedAttributes();
  $command['text'] = $text;
  unset($command['renderer']);
  $event = $this
    ->extract('event', $command);
  if (strpos($event, 'pre') === 0) {
    $event = 'pre';
  }
  else {
    $event = 'post';
  }
  $this->frxReport
    ->addAjaxCommand($command, $event);
  return '';
}