class Settings in Forena Reports 8
Same name and namespace in other branches
- 7.4 AjaxCommand/Settings.php \Drupal\forena\FrxPlugin\AjaxCommand\Settings
Class Settings
Plugin annotation
@FrxAjaxCommand(
id = "settings"
)
Hierarchy
- class \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase implements AjaxCommandInterface
- class \Drupal\forena\FrxPlugin\AjaxCommand\Settings
Expanded class hierarchy of Settings
1 string reference to 'Settings'
- forena_report_data_block_form in ./
forena.report.inc - A form to preview and add data blocks to an existing report
File
- src/
FrxPlugin/ AjaxCommand/ Settings.php, line 21
Namespace
Drupal\forena\FrxPlugin\AjaxCommandView source
class Settings extends AjaxCommandBase {
public function commandFromSettings(array $settings) {
if (!isset($settings['merge'])) {
$settings['merge'] = TRUE;
}
$merge = $this
->getSetting($settings, 'merge');
$json_settings = $this
->getJSONText($settings, 'settings');
return new SettingsCommand($json_settings);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected static | property | ||
AjaxCommandBase:: |
public | function | Get json text. | |
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public static | function | Report Replacer. | |
Settings:: |
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:: |