You are here

class Data in Forena Reports 8

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

Class Data

Plugin annotation


@FrxAjaxCommand(
  id = "data"
)

Hierarchy

Expanded class hierarchy of Data

7 string references to 'Data'
forena.links.task.yml in ./forena.links.task.yml
forena.links.task.yml
FrxCrosstab::configForm in src/FrxPlugin/Template/FrxCrosstab.php
Crosstab configuration form.
FrxFieldTable::configForm in src/FrxPlugin/Template/FrxFieldTable.php
Template configuration form @parmater $configuration form
FrxSVGGraph::configForm in src/FrxPlugin/Template/FrxSVGGraph.php
FrxTable::configForm in src/FrxPlugin/Template/FrxTable.php

... See full list

File

src/FrxPlugin/AjaxCommand/Data.php, line 20

Namespace

Drupal\forena\FrxPlugin\AjaxCommand
View source
class Data extends AjaxCommandBase {
  public function commandFromSettings(array $settings) {
    $selector = $this
      ->getSetting($settings, 'selector');
    $name = $this
      ->getSetting($settings, 'name');
    $value = $this
      ->getSetting($selector, 'value');
    return new DataCommand($selector, $name, $value);
  }

}

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.
Data::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