public function FrxEditor::setDocgen in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 FrxEditor.inc \FrxEditor::setDocgen()
Set document generation types that apply to this report. Enter description here ...
Parameters
unknown_type $docgenElements:
File
- ./
FrxEditor.inc, line 250 - 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 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');
}