/**
  * getAllAccounts
  * @deprecated it may take a long time to complete and fail on servers with lots of accounts
  *
  * use fetchAccounts instead
  * @param string $idOrNameDomain domain id or domain name
  * @param string $type value of the domain (auto, name, id)
  * @return array informations for all accounts
  */
 function getAllAccounts($idOrNameDomain, $type = "auto")
 {
     if ($type == "auto") {
         $realType = getDomainType($idOrNameDomain);
     } else {
         $realType = $type;
     }
     $result = null;
     $params = array(new SoapVar('<domain by="' . $realType . '">' . $idOrNameDomain . '</domain>', XSD_ANYXML));
     try {
         $result = $this->auth->execSoapCall("GetAllAccountsRequest", $params);
         $result = $result['SOAP:ENVELOPE']['SOAP:BODY']['GETALLACCOUNTSRESPONSE']['ACCOUNT'];
     } catch (SoapFault $exception) {
         $result = $exception;
     }
     return $result;
 }
 /**
  * deleteDomain
  * @param string $idOrNameDomain domain id or domain name
  * @param string $type value of the domain (auto, name, id)
  * @return array informations
  */
 function deleteDomain($idOrNameDomain, $type = "auto")
 {
     if ($type == "auto") {
         $realType = getDomainType($idOrNameDomain);
     } else {
         $realType = $type;
     }
     if ($realType == "name") {
         $domainId = $this->getDomainId($idOrNameDomain);
     } else {
         $domainId = $idOrNameDomain;
     }
     $result = null;
     $params = array(new SoapParam($domainId, "id"));
     try {
         $result = $this->auth->execSoapCall("DeleteDomainRequest", $params);
     } catch (SoapFault $exception) {
         $result = $exception;
     }
     return $result;
 }