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)); }