Ejemplo n.º 1
0
 public function modifyNs(Registrar_Domain $domain)
 {
     $params = array('command' => 'ModifyNS', 'SLD' => $domain->getSld(), 'TLD' => $domain->getTld());
     $i = 1;
     foreach ($domain->getNameservers() as $nse) {
         $params['NS' . $i] = $nse->getHost();
         $i++;
     }
     $result = $this->_makeRequest($params);
     if (isset($result->ErrCount) && $result->ErrCount == 0) {
         return true;
     } else {
         return false;
     }
 }
Ejemplo n.º 2
0
 public function registerDomain(Registrar_Domain $domain)
 {
     $c = $domain->getContactRegistrar();
     $params = array('domain' => $domain->getName(), 'years' => 1, 'fn' => $c->getFirstName(), 'ln' => $c->getLastName(), 'ad' => $c->getAddress1(), 'ad2' => $c->getAddress2(), 'cy' => $c->getCity(), 'st' => $c->getState(), 'zp' => $c->getZip(), 'ct' => $c->getCountry(), 'em' => $c->getEmail(), 'ph' => $c->getTel());
     $i = 0;
     foreach ($domain->getNameservers() as $ns) {
         $params['ns' . $i] = $ns->getHost();
     }
     $result = $this->_request('registerDomain', $params);
     return true;
 }