protected function CompileModuleDesigns($sTempTargetDir, $sFinalTargetDir) { SetupUtils::builddir($sTempTargetDir . '/core/module_designs'); $oDesigns = $this->oFactory->GetNodes('/itop_design/module_designs/module_design'); foreach ($oDesigns as $oDesign) { $oDoc = new ModuleDesign(); $oClone = $oDoc->importNode($oDesign->cloneNode(true), true); $oDoc->appendChild($oClone); $oDoc->save($sTempTargetDir . '/core/module_designs/' . $oDesign->getAttribute('id') . '.xml'); } }