You are here

function FrxTemplate::addText in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 templates/FrxTemplate.inc \FrxTemplate::addText()
  2. 7.2 templates/FrxTemplate.inc \FrxTemplate::addText()

File

templates/FrxTemplate.inc, line 130
FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Class

FrxTemplate
@file FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Code

function addText($cur_node, $text) {
  $dom = $this->dom;
  $tnode = $dom
    ->createTextNode($text);
  $cur_node
    ->appendChild($tnode);
  return $tnode;
}