public function FrxReport::deleteNode in Forena Reports 6.2
Same name and namespace in other branches
- 6 FrxReport.inc \FrxReport::deleteNode()
- 7 FrxReport.inc \FrxReport::deleteNode()
- 7.2 FrxReport.inc \FrxReport::deleteNode()
- 7.3 FrxReport.inc \FrxReport::deleteNode()
- 7.4 FrxReport.inc \FrxReport::deleteNode()
Delete a node based on id
Parameters
unknown_type $id:
Return value
unknown_type
File
- ./
FrxReport.inc, line 363 - Basic report provider. Controls the rendering of the report.
Class
Code
public function deleteNode($id) {
$path = '//*[@id="' . $id . '"]';
$nodes = $this->rpt_xml
->xpath($path);
if ($nodes) {
$node = $nodes[0];
$dom = dom_import_simplexml($node);
$dom->parentNode
->removeChild($dom);
}
}