[ Expand All ] [ Collapse All ] - [ Properties (0) ] [ Methods (19) ] - [ Legend ]

EnomService Class v. 1.0.3 24 April 2007

EnomInterface
EnomService

Enom API v 1.0.3 http://www.SysTurn.com

EnomService class

This class contains all the functions which will translate their passed parametrs into commands to be executed on Enom's servers.

AuthorBakr Alsharif
PackageDownload
Properties implemented by EnomService

EnomService has no properties.

Methods implemented by EnomService
public method addIDProtectService

PHPstring addIDProtectService(string $domainName, integer $numYears)

Add ID Protect service to a domain name

Executes the 'PurchaseServices' command on Enom's servers, to add the ID Protect service to an active domain name that belongs to your Enom Account.

Arguments

Return

Order ID, or false if failed.

public method checkDomain

PHParray checkDomain(string $sld, string $tld, boolean $spinner, boolean $allowDash, string $word1, string $word2, string $word3)

Check domain availability

Executes the 'Check' command on Enom's servers to check domain availability. Top-level domain name (extension) Permitted values are:

returns com, net, org - A comma-delimited list of TLDs to check, up to 30 names. Do not use with DomainSpinner.

Arguments

  • $sld

    Second-level Domain

  • $tld

    Top-level Domain (also known as Domain Extension).

  • $spinner [optional, default value = false]

    If true, DomainSpinner (Domain Suggestion) will be enabled

  • $allowDash [optional, default value = true]

    If DomainSpinner is enabled and $allowDash set to true, Suggested domain names may contain Dashes

  • $word1 [optional, default value = '']

    If DomainSpinner is enabled and $word1 is set, Suggested domain names may contain this word

  • $word2 [optional, default value = '']

    If DomainSpinner is enabled and $word2 is set, Suggested domain names may contain this word

  • $word3 [optional, default value = '']

    If DomainSpinner is enabled and $word3 is set, Suggested domain names may contain this word

Return

An associative array containing the domain name as a key and a bool (true if domain is available, false otherwise) as a value. On error, it returns false

public method getDomainContacts

PHParray getDomainContacts(string $domainName)

Get domain contacts for a domain name.

Executes the 'GetContacts' command on Enom's servers, to retrive the contacts information for a domain name that is active and belongs to your Enom account.

See also
EnomService::setDomainContacts()

Arguments

Return

Associative array containing contacts information.

public method getDomainHosts

PHParray getDomainHosts(string $domainName)

Get domain hosts (records) for a domain name.

Executes the 'GetHosts' command on Enom's servers, to get domain hosts (records) for a domain name that is active and belongs to your Enom account.

See also
EnomService::setDomainHosts()

Arguments

Return

Associative array containing all Hosts being set. Array keys are name, type, address and pref.

public method getDomainNameID

PHPlong getDomainNameID(string $domainName)

Get domain name ID for a domain name.

Executes the 'GetDomainNameID' command on Enom's servers, to get the domain name ID number for a domain name that belongs to your Enom account. Can be used to verify that domain name belongs to your Enom's account.

Arguments

Return

Domain name ID number, or false if failed.

public method getEmailForwarders

PHParray getEmailForwarders(string $domainName)

Get email forwarders for a domain name.

Executes the 'GetForwarding' command on Enom's servers, to get email forwarders for a domain name that is active and belongs to your Enom account.

See also
EnomService::setEmailForwarders()

Arguments

Return

Associative array containing 'Email account' as the key, and 'Forward To' as the value.

public method getExpiryDate

PHPstring getExpiryDate(string $domainName)

Get expiry date for a domain name

Executes the 'GetDomainExp' command on Enom's servers, to retrive the expiration date of a domain name that is active and belongs to your Enom account.

See also
EnomService::getDomainNameID()

Arguments

Return

Expiration date, or false on fail

public method getNameMyPhone

PHParray getNameMyPhone(string $domainName)

Get the current name-my-phone settings.

Executes the 'GetDomainPhone' command on Enom's servers, to get current name-my-phone settings for a domain name that is active and belongs to your Enom account.

See also
EnomService::setNameMyPhone()

Arguments

Return

Associative array containing name-my-phone settings.

public method getNameServers

PHParray getNameServers(string $domainName)

Get name servers for a domain name.

Executes the 'GetDNS' command on Enom's servers, to retrive the name servers for a domain name that is active and belongs to your Enom account.

See also
EnomService::getNameServers()

Arguments

Return

An array containing name servers. If using Enom's name servers, the array will be empty.

public method getRegistrarLock

PHPboolean getRegistrarLock(string $domainName)

Get registrar lock status for a domain name

Executes the 'GetRegLock' command on Enom's servers.

See also
EnomService::setRegistrarLock()

Arguments

Return

True if not locked, false otherwise. You should check for $this->isError if returned false, to make sure it's not an error flag not the registrar lock status.

public method registerDomain

PHPlong registerDomain(string $domainName, integer $numYears, array $contacts, array $nameServers, boolean $regLock)

Register a new domain name

Executes the 'Purchase' command on Enom's servers to register a new domain. Note that this command to not fail, it must meet the following requirements:

See also
EnomService::renewDomain()
EnomService::transferDomain()

Arguments

Return

Order ID, or false if failed.

public method renewDomain

PHPlong renewDomain(string $domainName, integer $numYears)

Renew a domain name that belongs to your Enom account

Executes the 'Extend' command on Enom's servers to renew a domain name which was previously registered or transfered to your Enom account. Note that this command to not fail, it must meet the following requirements:

See also
EnomService::registerDomain()
EnomService::transferDomain()

Arguments

Return

Renewal Order ID, or false if failed.

public method setDomainContacts

PHPboolean setDomainContacts(string $domainName, array $contacts)

Set domain contacts for a domain name.

Executes the 'Contacts' command on Enom's servers, to set the contacts information for a domain name that is active and belongs to your Enom account.

See also
EnomService::getDomainContacts()

Arguments

Return

True if succeed and false if failed.

public method setDomainHosts

PHPboolean setDomainHosts(string $domainName, array $domainHosts)

Set domain hosts (records) for a domain name.

Executes the 'SetHosts' command on Enom's servers, to set domain hosts (records) for a domain name that is active and belongs to your Enom account.

See also
EnomService::getDomainHosts()

Arguments

Return

True if succeed and False if failed.

public method setEmailForwarders

PHPboolean setEmailForwarders(string $domainName, array $emailForwarders)

Set email forwarders for a domain name.

Executes the 'Forwarding' command on Enom's servers, to set email forwarders for a domain name that is active and belongs to your Enom account.

See also
EnomService::getEmailForwarders()

Arguments

Return

True if succeed and False if failed.

public method setNameMyPhone

PHPsetNameMyPhone(string $domainName, string $phone, string $hostName, integer $serviceID, integer $templateID, boolean $emailAlias, string $ccEmail1, string $ccEmail2, string $ccEmail3)

Arguments

public method setNameServers

PHPboolean setNameServers(string $domainName, array $nameServers)

Set name servers for a domain name.

Executes the 'ModifyNS' command on Enom's servers, to set the name servers for a domain name that is active and belongs to your Enom account.

See also
EnomService::getNameServers()

Arguments

Return

True if succeed and false if failed.

public method setRegistrarLock

PHPboolean setRegistrarLock(string $domainName, boolean $unlockRegistrar)

Set registrar lock status for a domain name

Executes the 'SetRegLock' command on Enom's servers.

See also
EnomService::getRegistrarLock()

Arguments

Return

True if succeed, false on fail.

public method synchronizeEPP

PHPboolean synchronizeEPP(string $domainName, bool $sendEmail [optional, default value = true], bool $runSynch [optional, default value = true])

Create a new EPP key, synchronize the key with the Registry, and email it to the registrant.

Executes the 'SynchAuthInfo' command on Enom's servers, to create a new EPP key for a domain name that belongs to your Enom account, synchronize the key with the Registry, and optionally email it to the registrant.

Arguments

Return

True if succeed and False if failed.

public method transferDomain

PHPlong transferDomain(string $domainName, array $contacts, string $authCode, boolean $regLock)

Transfer a domain name to your Enom account

Executes the 'TP_CreateOrder' command on Enom's servers to transfer a domain name to your Enom account. Note that this command to not fail, it must meet the following requirements:

See also
EnomService::registerDomain()
EnomService::renewDomain()

Arguments

Return

Transfer Order ID, or false if failed.