getAttribute('module'); foreach ($mediaNode->getElementsByTagName(self::MEDIA_TYPE_CODE) as $node) { $videoId = $node->getAttribute('id'); $result[$mediaParentTag][$moduleNameVideo][Media::MEDIA_TYPE_CONFIG_NODE][$videoId]['type'] = $node->getAttribute('type'); foreach ($node->childNodes as $attribute) { if ($attribute->nodeType != XML_ELEMENT_NODE) { continue; } $nodeValue = $attribute->nodeValue; $result[$mediaParentTag][$moduleNameVideo][Media::MEDIA_TYPE_CONFIG_NODE][$videoId][$attribute->tagName] = $nodeValue; } } return $result; } }