public function FrxReport::addAjaxCommand in Forena Reports 7.4
Parameters
array $ajax: The Array of coommand objects
FrxSyntaxEngine $replacer: The object used to perform the replacement.
1 call to FrxReport::addAjaxCommand()
- FrxReport::render in ./
FrxReport.inc - Render the report
File
- ./
FrxReport.inc, line 331 - Basic report provider. Controls the rendering of the report.
Class
Code
public function addAjaxCommand($ajax, $event) {
$command = $ajax['command'];
$plugin = Frx::getAjaxPlugin($command);
if ($plugin) {
$class = $plugin;
/** @var AjaxCommandInterface $command */
$command = new $class($this->teng);
$ajax_command = $command
->commandFromSettings($ajax);
if ($ajax_command) {
$this->commands[$event][] = $ajax_command;
}
}
}