You are here

public function ReportEditor::setFields in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 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 411
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) {
  $this
    ->verifyHeaderElements(array(
    'fields',
  ));
  $this
    ->setFrxHeader('fields', 'field', $fieldElements, array(
    'id',
    'link',
    'format',
    'format-string',
    'target',
    'rel',
    'class',
    'add-query',
    'calc',
    'context',
  ), 'default');
}