function RendererBase::addNode in Forena Reports 7.5
Add a node to the existing dom element with attributes
Parameters
$cur_node DOMNode Parent node:
$indent Integer Text indentation.:
$tag String Tag name:
$value String text value of the element:
$attributes array Html attributes to add:
$frx_attributes array FRX attributes.:
Return value
void|unknown
9 calls to RendererBase::addNode()
- FrxCrosstab::generate in src/
Renderer/ FrxCrosstab.php - Generate the template from the configuration.
- FrxEmailMerge::generate in src/
Renderer/ FrxEmailMerge.php - Generate the template from the configuration.
- FrxFieldTable::generate in src/
Renderer/ FrxFieldTable.php - Generate the template from the configuration.
- FrxInclude::generate in src/
Renderer/ FrxInclude.php - Implement template generator.
- FrxSVGGraph::generateCrossTab in src/
Renderer/ FrxSVGGraph.php - Generate a crosstab table.
File
- src/
Renderer/ RendererBase.php, line 619 - FrxRenderer.php Base class for Frx custom Renderer @author davidmetzler
Class
Namespace
Drupal\forena\RendererCode
function addNode($cur_node, $indent, $tag = 'div', $value = '', $attributes = array(), $frx_attributes = array()) {
$dom = $this->frxReport->dom;
if (!$cur_node) {
return;
}
if ($indent) {
$tnode = $dom
->createTextNode("\n" . str_repeat(' ', $indent));
$cur_node
->appendChild($tnode);
}
$node = $this->frxReport->dom
->createElement($tag, $value);
$cur_node
->appendChild($node);
$this
->setAttributes($node, $attributes, $frx_attributes);
$cur_node
->appendChild($this->frxReport->dom
->createTextNode(""));
return $node;
}