You are here

public function FrxEditor::setTitle in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxEditor.inc \FrxEditor::setTitle()

Set the report title

Parameters

String $title:

File

./FrxEditor.inc, line 441
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);
}