Domain.php 447 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @package Net_EPP
  4. */
  5. class Net_EPP_Frame_Command_Transfer_Domain extends Net_EPP_Frame_Command_Transfer {
  6. function __construct() {
  7. parent::__construct('domain');
  8. }
  9. function setPeriod($period, $units='y') {
  10. $el = $this->createObjectPropertyElement('period');
  11. $el->setAttribute('unit', $units);
  12. $el->appendChild($this->createTextNode($period));
  13. $this->payload->appendChild($el);
  14. }
  15. }
  16. ?>