protected function loadModulesXml($modulesNode, $configPath)
{
foreach ($modulesNode->getElements() as $element) {
if ($element->getTagName() === 'module') {
$properties = $element->getAttributes();
$id = $properties->itemAt('id');
$type = $properties->remove('class');
if ($type === null) {
throw new TConfigurationException('appconfig_moduletype_required', $id);
}
$element->setParent(null);
if ($id === null) {
$this->_modules[] = array($type, $properties->toArray(), $element);
} else {
$this->_modules[$id] = array($type, $properties->toArray(), $element);
}
$this->_empty = false;
} else {
throw new TConfigurationException('appconfig_modules_invalid', $element->getTagName());
}
}
}