You are here

public function FrxEditor::setFields in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxEditor.inc \FrxEditor::setFields()

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

Parameters

$fieldElements:

File

./FrxEditor.inc, line 332
FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

FrxEditor
@file FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

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');
}