コード例 #1
0
 public function load_servicegroups_from_domxml($xml)
 {
     $this->servgroot = $xml;
     foreach ($xml->childNodes as $node) {
         if ($node->nodeType != 1) {
             continue;
         }
         $ns = new ServiceGroup('', $this);
         $ns->load_from_domxml($node);
         $f = $this->findTmpService($ns->name(), null, false);
         if ($f) {
             $f->replaceMeGlobally($ns);
         }
         $this->servg[] = $ns;
         $this->all[] = $ns;
         $this->add_Obj_inIndex($ns, lastIndex($this->all));
     }
     $this->regen_Indexes();
 }