You are here

public function FrxRenderer::removeChildren in Forena Reports 7.4

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

Parameters

DOMNode $node:

9 calls to FrxRenderer::removeChildren()
FrxCrosstab::generate in renderers/FrxCrosstab.inc
Generate the template from the configuration.
FrxEmailMerge::generate in renderers/FrxEmailMerge.inc
Generate the template from the configuration.
FrxFieldTable::generate in renderers/FrxFieldTable.inc
Generate the template from the configuration.
FrxMergeDocument::generate in renderers/FrxMergeDocument.inc
Generate the template from the configuration.
FrxRenderer::removeChildrenExcept in renderers/FrxRenderer.inc
Removes all chidren from the dome node expect those with a tagname specified by the the $tags argurment

... See full list

File

renderers/FrxRenderer.inc, line 837
FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Class

FrxRenderer
@file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Code

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