You are here

public function RendererBase::removeChildren in Forena Reports 8

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

Parameters

DOMNode $node:

2 calls to RendererBase::removeChildren()
RendererBase::removeChildrenExcept in src/FrxPlugin/Renderer/RendererBase.php
Removes all chidren from the dome node expect those with a tagname specified by the the $tags argurment
RendererBase::resetTemplate in src/FrxPlugin/Renderer/RendererBase.php
Starting at the current report node, this function removes all child nodes. It aso removes any FRX attributes on the current as well.

File

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

Class

RendererBase
Crosstab Renderer

Namespace

Drupal\forena\FrxPlugin\Renderer

Code

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