function createExtensionElement($ext, $command) { $this->extension = $this->createElement('extension'); $this->body->appendChild($this->extension); $this->extension->payload = $this->createElementNS(Net_EPP_ObjectSpec::xmlns($ext), $ext . ':' . $command); $this->extension->appendChild($this->extension->payload); }
function setObject($object) { $type = strtolower(str_replace(__CLASS__ . '_', '', get_class($this))); foreach ($this->payload->childNodes as $child) { $this->payload->removeChild($child); } $this->payload->appendChild($this->createElementNS(Net_EPP_ObjectSpec::xmlns($type), $type . ':' . Net_EPP_ObjectSpec::id($type), $object)); }
function addObject($object) { $type = strtolower(str_replace(__CLASS__ . '_', '', get_class($this))); $this->payload->appendChild($this->createElementNS(Net_EPP_ObjectSpec::xmlns($type), $type . ':' . Net_EPP_ObjectSpec::id($type), $object)); }
function createObjectPropertyElement($name) { return $this->createElementNS(Net_EPP_ObjectSpec::xmlns($this->type), $this->type . ':' . $name); }