You are here

public function AjaxCommandBase::getSetting in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 src/FrxPlugin/AjaxCommand/AjaxCommandBase.php \Drupal\forena\FrxPlugin\AjaxCommand\AjaxCommandBase::getSetting()

Parameters

$settings:

$key:

Return value

mixed The settings in the array

12 calls to AjaxCommandBase::getSetting()
After::commandFromSettings in AjaxCommand/After.php
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…
Alert::commandFromSettings in AjaxCommand/Alert.php
Append::commandFromSettings in AjaxCommand/Append.php
JQuery Append Command
Before::commandFromSettings in AjaxCommand/Before.php
JQuery Before Command
Changed::commandFromSettings in AjaxCommand/Changed.php
Changed command

... See full list

File

AjaxCommand/AjaxCommandBase.php, line 33

Class

AjaxCommandBase

Namespace

Drupal\forena\FrxPlugin\AjaxCommand

Code

public function getSetting(&$settings, $key) {
  $value = NULL;
  if (isset($settings[$key])) {
    $value = $settings[$key];
    unset($settings[$key]);
  }
  $this->replacer
    ->replaceNested($value);
  return $value;
}