You are here

function RendererBase::addText in Forena Reports 7.5

Add a text node to the current dom node.

Parameters

unknown $cur_node:

unknown $text:

Return value

unknown

File

src/Renderer/RendererBase.php, line 724
FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

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