* @link http://www.oxidmodule.com */ namespace D3\ModCfg\Modules\Application\Controller\Admin; use DOMDocument; use DOMElement; class d3_roles_bemain_rolesrights extends d3_roles_bemain_rolesrights_parent { /** * @return string */ public function render() { $sRet = parent::render(); $domDocument = new DOMDocument(); $oxiddoms = $this->getNavigation()->getDomXml()->documentElement->firstChild->childNodes; // fuege oxid bams hinzu foreach ($oxiddoms as $oxiddom) { $importNode = $domDocument->importNode($oxiddom, true); $domDocument->appendChild($importNode); } $domBom = $this->getNavigation()->getDomXml()->documentElement->childNodes; /** @var DOMElement $oxmenu */ foreach ($domBom as $oxmenu) { if ($oxmenu->hasAttributes()) { if ($oxmenu->getAttribute('id') == 'd3mxd3modules') { $importNode = $domDocument->importNode($oxmenu, true); $domDocument->appendChild($importNode); } } } //ueberschreibe oxid bams $this->addTplParam('adminmenu', $domDocument->childNodes); return $sRet; } }