FrxAjax.php in Forena Reports 8
File
src/FrxPlugin/Renderer/FrxAjax.php
View source
<?php
namespace Drupal\forena\FrxPlugin\Renderer;
class FrxAjax extends RendererBase {
public function render() {
$text = $this
->innerXML($this->reportNode);
$command = $this
->mergedAttributes();
$command['text'] = $text;
$event = $this
->extract('event', $command);
if (strpos($event, 'pre') === 0) {
$event = 'pre';
}
else {
$event = 'post';
}
$this
->getDocument()
->addAjaxCommand($command, $event);
return '';
}
}