コード例 #1
0
ファイル: Transfer.php プロジェクト: roojs/pear
 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));
 }
コード例 #2
0
ファイル: Renew.php プロジェクト: 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));
 }