ricardo_bastos
(usa CentOS)
Enviado em 20/08/2012 - 13:06h
o Script do arquivo:
<?php
class XmlUtils
{
function XmlUtils()
{
}
function loadComponents($xml)
{
$doc = new DomDocument();
$doc->load($xml);
$modules = $doc->getElementsByTagName("module");
foreach($modules as $module)
{
$name = $module->getElementsByTagName("name");
$name = $name->item(0)->nodeValue;
$class = $module->getElementsByTagName("class");
$class = $class->item(0)->nodeValue;
if($class)
include_admin_component($name,$class);
}
}
}
?>