ObjectSpec.php 1003 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * @package Net_EPP
  4. */
  5. class Net_EPP_ObjectSpec {
  6. static $_spec = array(
  7. 'domain' => array(
  8. 'xmlns' => 'urn:ietf:params:xml:ns:domain-1.0',
  9. 'id' => 'name',
  10. 'schema' => 'urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd',
  11. ),
  12. 'host' => array(
  13. 'xmlns' => 'urn:ietf:params:xml:ns:host-1.0',
  14. 'id' => 'name',
  15. 'schema' => 'urn:ietf:params:xml:ns:host-1.0 host-1.0.xsd',
  16. ),
  17. 'contact' => array(
  18. 'xmlns' => 'urn:ietf:params:xml:ns:contact-1.0',
  19. 'id' => 'id',
  20. 'schema' => 'urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd',
  21. ),
  22. 'rgp' => array(
  23. 'xmlns' => 'urn:ietf:params:xml:ns:rgp-1.0',
  24. 'id' => 'id',
  25. 'schema' => 'urn:ietf:params:xml:ns:rgp-1.0 rgp-1.0.xsd',
  26. ),
  27. );
  28. static function id($object) {
  29. return self::$_spec[$object]['id'];
  30. }
  31. static function xmlns($object) {
  32. return self::$_spec[$object]['xmlns'];
  33. }
  34. static function schema($object) {
  35. return self::$_spec[$object]['schema'];
  36. }
  37. }
  38. ?>