You are here

class Settings in Forena Reports 8

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

Class Settings

Plugin annotation


@FrxAjaxCommand(
  id = "settings"
)

Hierarchy

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\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 new SettingsCommand($json_settings);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AjaxCommandBase::$replacer protected static property
AjaxCommandBase::getJSONText public function Get json text.
AjaxCommandBase::getSetting public function
AjaxCommandBase::replacer public static function Report Replacer.
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