You are here

function RendererBase::addText in Forena Reports 8

Add a text node to the current dom node.

Parameters

DOMNode $cur_node: Dom node to append text to.

string $text: Text to add

Return value

DOMNode Added text node.

File

src/FrxPlugin/Renderer/RendererBase.php, line 722
FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

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