2024-04-19 16:15:46 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2024-09-02 08:48:43 +02:00
|
|
|
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
|
2024-04-19 16:15:46 +02:00
|
|
|
*
|
2024-09-02 08:48:43 +02:00
|
|
|
* For the full copyright and license information, please view
|
|
|
|
* the LICENSE file that was distributed with this source code.
|
2024-04-19 16:15:46 +02:00
|
|
|
*
|
|
|
|
* https://www.d3data.de
|
|
|
|
*
|
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2024-09-02 08:48:43 +02:00
|
|
|
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
|
|
|
|
* @link https://www.oxidmodule.com
|
2024-04-19 16:15:46 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|