/** * * * @param array $params * * @return array */ function transip_TransferDomain($params) { transip_initialize($params); $domain = new Transip_Domain($params['sld'] . "." . $params['tld']); $domain->nameservers = array(); foreach ($params as $key => $value) { if (preg_match("/^ns([0-9]+)\$/", $key, $matches) && !empty($value)) { $domain->nameservers[$matches[1] - 1] = new Transip_Nameserver($value); continue; } } $domain->contacts = transip_getContactsForRegisterAndTransfer($params); $authCode = $params['transfersecret']; logModuleCall("transip", "TransferDomain", array($domain, $authCode)); if (preg_match("/\\.(\\w+)\$/", $domain->name, $matches)) { switch ($matches[1]) { case "be": case "eu": case "nl": Transip_DomainService::transferwithoutownerchange($domain, $authCode); break; default: Transip_DomainService::transferwithownerchange($domain, $authCode); } } return array(); }