public function RendererBase::resetTemplate in Forena Reports 8
Starting at the current report node, this function removes all child nodes. It aso removes any FRX attributes on the current as well.
Return value
\SimpleXMLElement Report xml created.
File
- src/
FrxPlugin/ Renderer/ RendererBase.php, line 416 - FrxRenderer.php Base class for FrxAPI custom Renderer @author davidmetzler
Class
- RendererBase
- Crosstab Renderer
Namespace
Drupal\forena\FrxPlugin\RendererCode
public function resetTemplate() {
$node = $this->reportDocDomNode;
$this
->removeChildren($node);
$tag = $node->tagName;
$new_node = $this->report->dom
->createElement($tag);
$this->frxAttributes = array();
$parent = $node->parentNode;
$parent
->replaceChild($new_node, $node);
$this->reportDocDomNode = $new_node;
$this
->initReportNode($new_node);
return $node;
}