load(DATAPATH."/RemoteData/Bases.xml"); $bases = $basesDom->getElementsByTagName("dataCenter"); // $bases = array("IPIM", "LATMOS", "FMI_HYBRID", "FMI_GUMICS", "SINP", "LESIA"); foreach ($bases as $base) { if ($base->hasAttribute('isSimulation')) { $class = $base->getAttribute('xml:id'); echo PHP_EOL.$class.PHP_EOL; $center = new $class(); $center->initProxy(); $center->makeProxy(); $center->saveProxy(); } } ?>