You are here

public function FrxReport::deleteNode in Forena Reports 7

Same name and namespace in other branches
  1. 6.2 FrxReport.inc \FrxReport::deleteNode()
  2. 6 FrxReport.inc \FrxReport::deleteNode()
  3. 7.2 FrxReport.inc \FrxReport::deleteNode()
  4. 7.3 FrxReport.inc \FrxReport::deleteNode()
  5. 7.4 FrxReport.inc \FrxReport::deleteNode()

Delete a node based on id

Parameters

unknown_type $id:

Return value

unknown_type

File

./FrxReport.inc, line 285
Basic report provider. Controls the rendering of the report.

Class

FrxReport

Code

public function deleteNode($id) {
  $path = '//*[@id="' . $id . '"]';
  $nodes = $this->rpt_xml
    ->xpath($path);
  $node = $nodes[0];
  $dom = dom_import_simplexml($node);
  $dom->parentNode
    ->removeChild($dom);
}