public function FrxReportEditor::setDocgen in Forena Reports 6
Same name and namespace in other branches
- 6.2 FrxReportEditor.inc \FrxReportEditor::setDocgen()
- 7 FrxReportEditor.inc \FrxReportEditor::setDocgen()
- 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 247
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');
}