You are here

class Settings in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 src/FrxPlugin/AjaxCommand/Settings.php \Drupal\forena\FrxPlugin\AjaxCommand\Settings

Class Settings

Plugin annotation


@FrxAjaxCommand(
  id = "settings"
)

Hierarchy

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\AjaxCommand
View 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

Namesort descending Modifiers Type Description Overrides
AjaxCommandBase::$replacer protected property
AjaxCommandBase::getJSONText public function
AjaxCommandBase::getSetting public function
AjaxCommandBase::__construct public function AjaxCommandBase constructor.
Settings::commandFromSettings 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::commandFromSettings