You are here

public function FrxReportEditor::setDocgen in Forena Reports 7

Same name and namespace in other branches
  1. 6.2 FrxReportEditor.inc \FrxReportEditor::setDocgen()
  2. 6 FrxReportEditor.inc \FrxReportEditor::setDocgen()
  3. 7.2 FrxReportEditor.inc \FrxReportEditor::setDocgen()

Set document generation types that apply to this report. Enter description here ...

Parameters

unknown_type $docgenElements:

File

./FrxReportEditor.inc, line 241

Class

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

Code

public function setDocgen($docgenElements) {
  $dom = $this->dom;
  $newDocs = $dom
    ->createElementNS($this->xmlns, 'docgen');
  $this
    ->verifyHeaderElements(array(
    'docgen',
  ));
  $dnode = $dom
    ->getElementsByTagNameNS($this->xmlns, 'docgen')
    ->item(0);
  $p = $dnode->parentNode;
  $p
    ->replaceChild($newDocs, $dnode);
  $this
    ->setFrxHeader('docgen', 'doc', $docgenElements, array(
    'type',
  ), null, 'type');
}