FrxAjax.inc in Forena Reports 7.4
File
renderers/FrxAjax.inc
View source
<?php
class FrxAjax extends FrxRenderer {
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 '';
}
}