You are here

public function ReportEditor::setFields in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::setFields()

Builds the fields from an array of elements. Enter description here ...

Parameters

$fieldElements:

File

src/Editor/ReportEditor.php, line 388
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 setFields($fieldElements) {
  $dom = $this->dom;
  $this
    ->verifyHeaderElements(array(
    'fields',
  ));
  $this
    ->setFrxHeader('fields', 'field', $fieldElements, array(
    'id',
    'link',
    'format',
    'format-string',
    'target',
    'rel',
    'class',
    'add-query',
    'calc',
    'context',
  ), 'default');
}