public function FrxReportEditor::setTitle in Forena Reports 6
Same name and namespace in other branches
- 6.2 FrxReportEditor.inc \FrxReportEditor::setTitle()
- 7 FrxReportEditor.inc \FrxReportEditor::setTitle()
- 7.2 FrxReportEditor.inc \FrxReportEditor::setTitle()
Set the report title
Parameters
String $title:
File
- ./
FrxReportEditor.inc, line 285
Class
- FrxReportEditor
- Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Code
public function setTitle($title) {
$dom = $this->dom;
$head = $dom
->getElementsByTagName('head')
->item(0);
$tnode = $dom
->getElementsByTagName('title')
->item(0);
$node = $dom
->createElement('title', $title);
$head
->replaceChild($node, $tnode);
}