コード例 #1
0
 function __construct($createinfo)
 {
     parent::__construct($createinfo);
     if ($createinfo instanceof eppContact) {
         $this->setContact($createinfo);
     } else {
         throw new eppException('createinfo must be of type eppContact on eppCreateContactRequest');
     }
     $this->addSessionId();
 }
コード例 #2
0
 function __construct($createinfo, $forcehostattr = false)
 {
     parent::__construct($createinfo);
     if ($createinfo instanceof eppDomain) {
         $this->setForcehostattr($forcehostattr);
         $this->setDomain($createinfo);
     } else {
         throw new eppException('createinfo must be of type eppDomain on eppCreateDomainRequest');
     }
     $this->addSessionId();
 }