You are here

public function FrxEditor::removeParm in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.3 FrxEditor.inc \FrxEditor::removeParm()

File

./FrxEditor.inc, line 603
FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

FrxEditor
@file FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Code

public function removeParm($id) {
  $dom = $this->dom;
  $xpq = $this->xpq;
  $pnode = $dom
    ->getElementsByTagNameNS($this->xmlns, 'parameters')
    ->item(0);
  $path = '//frx:parameters/frx:parm[@id="' . $id . '"]';
  $nodes = $xpq
    ->query($path);
  if ($nodes->length) {
    foreach ($nodes as $node) {
      $pnode
        ->removeChild($node);
    }
  }
}