Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
Arquivo: Renew.php Projeto: roojs/pear
 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));
 }