You are here

public function FrxEditor::addParameters in Forena Reports 7.4

2 calls to FrxEditor::addParameters()
FrxEditor::addBlock in ./FrxEditor.inc
Add a data blcok
FrxEditor::prependBlock in ./FrxEditor.inc
Insert a data block before a node.

File

./FrxEditor.inc, line 425
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 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');
  }
}