public function FrxEditor::setTitle in Forena Reports 7.3
Same name and namespace in other branches
- 7.4 FrxEditor.inc \FrxEditor::setTitle()
Set the report title
Parameters
String $title:
File
- ./
FrxEditor.inc, line 297 - 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 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);
}