public function FrxEditor::getMenu in Forena Reports 7.4
Same name and namespace in other branches
- 7.3 FrxEditor.inc \FrxEditor::getMenu()
File
- ./
FrxEditor.inc, line 511 - 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 getMenu() {
$dom = $this->dom;
$this
->verifyHeaderElements(array(
'menu',
));
$opts = $dom
->getElementsByTagNameNS($this->xmlns, 'menu')
->item(0);
$ret = array();
// Simplexml is easier to work with
$options = simplexml_import_dom($opts);
foreach ($options
->attributes() as $key => $value) {
$ret[(string) $key] = (string) $value;
}
return $ret;
}