foreach (['name', 'controller', 'action', 'class', 'onclick'
] as $simpleField) { $fieldValue = self::
getElementChildValueByName($entry,
$simpleField);
if ($fieldValue !== null
) { $menuEntry[$simpleField] =
$fieldValue;
} } $parent =
$entry->
getElementsByTagName('parent'
)->
item(0
);
if ($parent !== null
) { $identifiedBy = self::
validateTextAttribute( $parent->
getAttribute('identifiedBy'
),
'controller'
);
$menuEntry['parent'
] =
[ $identifiedBy =>
$parent->nodeValue,
];
} $active = self::
getElementChildValueByName($entry, 'active'
);
if ($active !== null
) {