protected function importDomainMirror(DOMElement $vcaf9b6b99962bf5c2264824231d7a40c, domain $vad5f82e879a9c5d6b5b442eb37e50551) { $v61ce6a78cb3c8547fed20990c92edfe3 = $vcaf9b6b99962bf5c2264824231d7a40c->getAttribute('id'); $v67b3dba8bc6778101892eb77249db32e = $vcaf9b6b99962bf5c2264824231d7a40c->hasAttribute('host') ? $vcaf9b6b99962bf5c2264824231d7a40c->getAttribute('host') : null; if (!strlen($v61ce6a78cb3c8547fed20990c92edfe3)) { $this->reportError($this->getLabel('label-cannot-create-domain-mirror') . " \"{$v67b3dba8bc6778101892eb77249db32e}\" " . $this->getLabel('label-with-empty-id')); return false; } $ve2fa538867c3830a859a5b17ab24644b = false; $v1834e28d86200a836697541c12fa09bd = $this->relations->getNewDomainMirrorIdRelation($this->source_id, $v61ce6a78cb3c8547fed20990c92edfe3); if (!$v1834e28d86200a836697541c12fa09bd) { if (!is_null($v67b3dba8bc6778101892eb77249db32e)) { $v1834e28d86200a836697541c12fa09bd = $vad5f82e879a9c5d6b5b442eb37e50551->getMirrowId($v67b3dba8bc6778101892eb77249db32e); if ($v1834e28d86200a836697541c12fa09bd) { $this->relations->setDomainMirrorIdRelation($this->source_id, $v61ce6a78cb3c8547fed20990c92edfe3, $v1834e28d86200a836697541c12fa09bd); } } } if ($v1834e28d86200a836697541c12fa09bd && $this->update_ignore) { $this->writeLog($this->getLabel('label-domain') . " \"" . $v67b3dba8bc6778101892eb77249db32e . "\" (#{$v61ce6a78cb3c8547fed20990c92edfe3}) " . $this->getLabel('label-already-exists')); return $vad5f82e879a9c5d6b5b442eb37e50551->getMirrow($v1834e28d86200a836697541c12fa09bd); } if (!$v1834e28d86200a836697541c12fa09bd) { if (is_null($v67b3dba8bc6778101892eb77249db32e)) { $v67b3dba8bc6778101892eb77249db32e = $v61ce6a78cb3c8547fed20990c92edfe3; } $v1834e28d86200a836697541c12fa09bd = $vad5f82e879a9c5d6b5b442eb37e50551->addMirrow($v67b3dba8bc6778101892eb77249db32e); $this->relations->setDomainMirrorIdRelation($this->source_id, $v61ce6a78cb3c8547fed20990c92edfe3, $v1834e28d86200a836697541c12fa09bd); $ve2fa538867c3830a859a5b17ab24644b = true; } $v95be0a2e6132b4fa2294808f7dbcc52a = $vad5f82e879a9c5d6b5b442eb37e50551->getMirrow($v1834e28d86200a836697541c12fa09bd); if (!$v95be0a2e6132b4fa2294808f7dbcc52a instanceof domainMirrow) { $this->reportError($this->getLabel('label-cannot-detect-domain-mirror') . " \"{$v67b3dba8bc6778101892eb77249db32e}\""); return false; } if ($ve2fa538867c3830a859a5b17ab24644b) { $this->created_domain_mirrors++; $this->writeLog($this->getLabel('label-domain-mirror') . " \"" . $v67b3dba8bc6778101892eb77249db32e . "\" (#" . $v61ce6a78cb3c8547fed20990c92edfe3 . ") " . $this->getLabel('label-has-been-created-n')); } elseif ($v95be0a2e6132b4fa2294808f7dbcc52a->getIsUpdated()) { $this->updated_domain_mirrors++; $this->writeLog($this->getLabel('label-domain-mirror') . " \"" . $v67b3dba8bc6778101892eb77249db32e . "\" (#" . $v61ce6a78cb3c8547fed20990c92edfe3 . ") " . $this->getLabel('label-has-been-updated-n')); } return $v95be0a2e6132b4fa2294808f7dbcc52a; }