public function setContactHandle(eppContactHandle $contacthandle) { if (!strlen($contacthandle->getContactHandle())) { throw new eppException('eppDeleteRequest contacthandle object does not contain a valid contacthandle'); } # # Object delete structure # $this->contactobject->appendChild($this->createElement('contact:id', $contacthandle->getContactHandle())); }
public function setContactHandle(eppContactHandle $contacthandle) { # # Domain check structure # $info = $this->createElement('info'); $this->contactobject = $this->createElement('contact:info'); $this->contactobject->appendChild($this->createElement('contact:id', $contacthandle->getContactHandle())); $info->appendChild($this->contactobject); $this->getCommand()->appendChild($info); }
public function setContactHandle(eppContactHandle $contacthandle) { # # Domain check structure # $this->contactobject->appendChild($this->createElement('contact:id', $contacthandle->getContactHandle())); if (!is_null($contacthandle->getPassword())) { $authinfo = $this->createElement('contact:authInfo'); $authinfo->appendChild($this->createElement('contact:pw', $contacthandle->getPassword())); $this->contactobject->appendChild($authinfo); } }
/** * * @param eppContact $contact * @return void */ public function addContact(eppContactHandle $contact) { if (!strlen($contact->getContactType())) { throw new eppException('No contact type set for: ' . $contact->getContactHandle() . ', please set one!'); } $this->contacts[] = $contact; }
public function setContactRequest(eppContactHandle $contact) { # # Object create structure # $transfer = $this->createElement('transfer'); $transfer->setAttribute('op', self::OPERATION_REQUEST); $this->contactobject = $this->createElement('contact:transfer'); $this->contactobject->appendChild($this->createElement('contact:id', $contact->getContactHandle())); $transfer->appendChild($this->contactobject); $this->getCommand()->appendChild($transfer); }