You are here

public function RendererBase::removeChildren in Forena Reports 7.5

Rmove all the children of a dom node in the current report.

Parameters

DOMNode $node:

9 calls to RendererBase::removeChildren()
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.
FrxMergeDocument::generate in src/Renderer/FrxMergeDocument.php
Generate the template from the configuration.
FrxSection::generate in src/Renderer/FrxSection.php
Build the template

... See full list

File

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

Class

RendererBase

Namespace

Drupal\forena\Renderer

Code

public function removeChildren(DOMNode $node) {
  while (isset($node->firstChild) && $node->firstChild->nodeType < 9) {
    $this
      ->removeChildren($node->firstChild);
    $node
      ->removeChild($node->firstChild);
  }
}