Check.php 463 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @package Net_EPP
  4. */
  5. abstract class Net_EPP_Frame_Command_Check extends Net_EPP_Frame_Command {
  6. function __construct($type) {
  7. parent::__construct('check', $type);
  8. }
  9. function addObject($object) {
  10. $type = strtolower(str_replace(__CLASS__.'_', '', get_class($this)));
  11. $this->payload->appendChild($this->createElementNS(
  12. Net_EPP_ObjectSpec::xmlns($type),
  13. $type.':'.Net_EPP_ObjectSpec::id($type),
  14. $object
  15. ));
  16. }
  17. }
  18. ?>