This class fetches domain information, in the default case from the database. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetDomains command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <packageID><!-- int --></packageID> <clientID><!-- int --></clientID> <domainID><!-- int --></domainID> <domainSLD><!-- string --></domainSLD> <domainTLD><!-- string --></domainTLD> <domainName><!-- string --></domainName> <domainRenewType><!-- int --></domainRenewType> <domainDateCreated><!-- int --></domainDateCreated> <domainDateCreatedGreaterThan><!-- int --></domainDateCreatedGreaterThan> <domainDateCreatedLessThan><!-- int --></domainDateCreatedLessThan> <domainDateCreatedGreatest><!-- int --></domainDateCreatedGreatest> <domainDateCreatedLeast><!-- int --></domainDateCreatedLeast> <domainDateExpires><!-- int --></domainDateExpires> <domainDateExpiresGreaterThan><!-- int --></domainDateExpiresGreaterThan> <domainDateExpiresLessThan><!-- int --></domainDateExpiresLessThan> <domainDateExpiresGreatest><!-- int --></domainDateExpiresGreatest> <domainDateExpiresLeast><!-- int --></domainDateExpiresLeast> <domainDateLastSync><!-- int --></domainDateLastSync> <domainDateLastSyncGreaterThan><!-- int --></domainDateLastSyncGreaterThan> <domainDateLastSyncLessThan><!-- int --></domainDateLastSyncLessThan> <domainDateLastSyncGreatest><!-- int --></domainDateLastSyncGreatest> <domainDateLastSyncLeast><!-- int --></domainDateLastSyncLeast> <packageType><!-- int --></packageType> <comparisonOperator><!-- string --></comparisonOperator> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
packageID
The ID of the package associated with this domain. This will always select at most 1 domain.
clientID
The ID of the client whose domains should be fetched.
domainID
The ID of the domain. This will always select at most 1 domain.
domainSLD
The SLD portion of the domain. This is the "ibm" portion of ibm.com
domainTLD
The TLD portion of the domain. This is the "co.uk" portion of bbc.co.uk
domainName
The domain name to fetch. This is a searched using a LIKE clause, so an exact, full name is not necessary.
domainRenewType
Set to 1 to retieve domains that are set to auto-renew at the registrar.
domainDateCreated
The exact UNIX timestamp for which a domain in the result set was created.
domainDateCreatedGreaterThan
The minimum UNIX timestamp for which a domain in the result set was created
domainDateCreatedLessThan
The maximum UNIX timestamp for which a domain in the result set was created.
domainDateCreatedGreatest
The highest UNIX timestamp for a domain in the result set was created. This will return all dates less than or equal to this timestamp.
domainDateCreatedLeast
The lowest UNIX timestamp for a domain in the result set was created. This will return all dates greater than or equal to this timestamp.
domainDateExpires
The exact UNIX timestamp for which a domain in the result set was Expires.
domainDateExpiresGreaterThan
The minimum UNIX timestamp for which a domain in the result set was Expires
domainDateExpiresLessThan
The maximum UNIX timestamp for which a domain in the result set was Expires.
domainDateExpiresGreatest
The highest UNIX timestamp for a domain in the result set was Expires. This will return all dates less than or equal to this timestamp.
domainDateExpiresLeast
The lowest UNIX timestamp for a domain in the result set was Expires. This will return all dates greater than or equal to this timestamp.
domainDateLastSync
The UNIX timestamp of when the last Domain Sync has occured.
domainDateLastSyncGreaterThan
The minimum UNIX timestamp for which a domain in the result set was last sync.
domainDateLastSyncLessThan
The maximum UNIX timestamp for which a domain in the result set was last sync.
domainDateLastSyncGreatest
The highest UNIX timestamp for a domain in the result set was last sync. This will return all dates less than or equal to this timestamp.
domainDateLastSyncLeast
The lowest UNIX timestamp for a domain in the result set was last sync. This will return all dates greater than or equal to this timestamp.
packageType
The product / package type to limit to. Needed when you don't want to include the hosting package
comparisonOperator
Used with some columns to denote type of comparison to use the the query. Ex. LIKE, =
sortDir
sortColumn
recordOffset
numRecords