public function FrxReportEditor::setCategory in Forena Reports 6
Same name and namespace in other branches
- 6.2 FrxReportEditor.inc \FrxReportEditor::setCategory()
- 7 FrxReportEditor.inc \FrxReportEditor::setCategory()
- 7.2 FrxReportEditor.inc \FrxReportEditor::setCategory()
Set the report category Enter description here ...
Parameters
unknown_type $cateogry:
File
- ./
FrxReportEditor.inc, line 298
Class
- FrxReportEditor
- Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Code
public function setCategory($category) {
$ret = array();
$dom = $this->dom;
$this
->verifyHeaderElements(array(
'category',
));
$head = $dom
->getElementsByTagName('head')
->item(0);
$cnode = $dom
->getElementsByTagNameNS($this->xmlns, 'category')
->item(0);
$node = $dom
->createElementNS($this->xmlns, 'category', $category);
$head
->replaceChild($node, $cnode);
}