You are here

public function ReportEditor::addParameters in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::addParameters()
2 calls to ReportEditor::addParameters()
ReportEditor::addBlock in src/Editor/ReportEditor.php
Add a data blcok
ReportEditor::prependBlock in src/Editor/ReportEditor.php
Insert a data block before a node.

File

src/Editor/ReportEditor.php, line 505
ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

ReportEditor

Namespace

Drupal\forena\Editor

Code

public function addParameters($parms_to_add) {
  $parms_to_add = (array) $parms_to_add;
  foreach ($parms_to_add as $parm) {
    $parms = array();
    $parms[$parm] = array(
      'id' => $parm,
    );
    $this
      ->setFrxHeader('parameters', 'parm', $parms, array(
      'id',
      'label',
      'require',
      'desc',
      'data_source',
      'data_field',
      'type',
    ), 'default');
  }
}