Availability Checks
Check Availability
Input Parameters
Variable | Type | Notes |
---|---|---|
searchTerm | string | The search term provided by the end user |
punyCodeSearchTerm | string | For an IDN domain, the puny code encoded search term |
tldsToInclude | array | An array of TLDs/extensions to perform the availability check for |
isIdnDomain | bool | If IDN Domains are enabled for this WHASOLS installation |
premiumEnabled | bool | If Premium Domains are enabled for this WHASOLS installation |
For performance reasons, we recommending performing the lookup for all requested extensions at the same time if the registrar supports it.
Return
The return of this function is expected to be an ArrayObject based collection of SearchResult results.
Each SearchResult object consists of an SLD and TLD, a status (available, registered, reserved) and optionally premium information such as Purchase Cost Price.
Code Sample
Please refer to the example provided in the Sample Registrar Module available via Github for an example implementation of the CheckAvailability
function.
Get Domain Suggestions
The purpose of this function is to return a list of alternative domain registration suggestions based on the search term provided by an end user.
Input Parameters
In addition to the regular Common Module Parameters, the GetSuggestions
function is passed the following input parameters.
Variable | Type | Notes |
---|---|---|
searchTerm | string | The search term provided by the end user |
punyCodeSearchTerm | string | For an IDN domain, the puny code encoded search term |
tldsToInclude | array | An array of TLDs/extensions to perform the availability check for |
isIdnDomain | bool | If IDN Domains are enabled for this WHASOLS installation |
premiumEnabled | bool | If Premium Domains are enabled for this WHASOLS installation |
suggestionSettings | array | An array of settings and their values as defined in the DomainSuggestionOptions function |
Return
Code Sample
Please refer to the example provided in the Sample Registrar Module available via Github for an example implementation of the GetDomainSuggestions
function