class Settings in Forena Reports 7.4
Same name and namespace in other branches
- 8 src/FrxPlugin/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
3 string references to 'Settings'
- forena_report_data_block_form in ./
forena.report.inc - A form to preview and add data blocks to an existing report
- Frx::getAjaxPlugin in ./
Frx.inc - FrxBean::form in bean/
FrxBean.inc - The Plugin Form
File
- AjaxCommand/
Settings.php, line 19
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 ajax_command_settings($json_settings, $merge);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AjaxCommandBase:: |
protected | property | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | ||
AjaxCommandBase:: |
public | function | AjaxCommandBase constructor. | |
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:: |