class Invoke in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/AjaxCommand/Invoke.php \Drupal\forena\FrxPlugin\AjaxCommand\Invoke
Class Invoke
Plugin annotation
@FrxAjaxCommand(
id = "invoke"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface
- class \Drupal\forena\FrxPlugin\AjaxCommand\Invoke
Expanded class hierarchy of Invoke
1 string reference to 'Invoke'
File
- AjaxCommand/
Invoke.php, line 18
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Invoke extends AjaxCommandBase {
/**
* {@inheritdoc}
*/
public function commandFromSettings(array $settings) {
$selector = $settings['selector'];
$method = $settings['method'];
$arguments = $this
->getJSONText($settings, 'arguments');
if (!$arguments) {
$arguments = array();
}
$command = ajax_command_invoke($selector, $method, $arguments);
return $command;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected | property | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | AjaxCommandBase constructor. | |
Invoke:: |
public | function |
Settings are passed into this factory from either the skin or the report
element. If there are complex structures when used in the arguments they
will be passed in the 'text' setting. These should be decoded by any
plugin intending to use… Overrides AjaxCommandInterface:: |