PHP Class Metaregistrar\EPP\eppContact

This will hold the complete contact info a registry can receive and give you
Show file Open project: metaregistrar/php-epp-client Class Usage Examples

Public Methods

Method Description
__construct ( Metaregistrar\EPP\eppContactPostalInfo $postalInfo = null, string $email = null, string $voice = null, string $fax = null, string $password = null, string $status = null )
addPostalInfo ( Metaregistrar\EPP\eppContactPostalInfo $postalInfo ) Add postal info to this contact
generateContactId ( ) : string
generateRandomString ( $length = 10 )
getDisclose ( )
getEmail ( ) : string Gets the email address
getFax ( ) : string Gets the fax number
getPassword ( ) : string Gets the password
getPostalInfo ( integer $line ) : Metaregistrar\EPP\eppContactPostalInfo Retrieve a postalInfo object by number
getPostalInfoLength ( ) : integer Gets the total number of postalinfo objects this contact holds
getStatus ( ) : string Sets the status
getType ( )
getVoice ( ) : string Gets the phone number
setDisclose ( $disclose )
setEmail ( string $email ) : void Sets the email address
setFax ( integer $fax ) : void Sets the fax number
setPassword ( string $password ) : void Sets the password
setStatus ( string $status ) Sets the status
setType ( $type )
setVoice ( integer $voice ) : void Sets the phone number

Private Methods

Method Description
validatePhoneNumber ( integer $number ) : string Formats the phone number according to SIDN formatting rules

Method Details

__construct() public method

public __construct ( Metaregistrar\EPP\eppContactPostalInfo $postalInfo = null, string $email = null, string $voice = null, string $fax = null, string $password = null, string $status = null )
$postalInfo Metaregistrar\EPP\eppContactPostalInfo
$email string
$voice string
$fax string
$password string
$status string

addPostalInfo() public method

Add postal info to this contact
public addPostalInfo ( Metaregistrar\EPP\eppContactPostalInfo $postalInfo )
$postalInfo Metaregistrar\EPP\eppContactPostalInfo

generateContactId() public method

public generateContactId ( ) : string
return string ContactId

generateRandomString() public static method

public static generateRandomString ( $length = 10 )

getDisclose() public method

public getDisclose ( )

getEmail() public method

Gets the email address
public getEmail ( ) : string
return string

getFax() public method

Gets the fax number
public getFax ( ) : string
return string

getPassword() public method

Gets the password
public getPassword ( ) : string
return string

getPostalInfo() public method

Retrieve a postalInfo object by number
public getPostalInfo ( integer $line ) : Metaregistrar\EPP\eppContactPostalInfo
$line integer
return Metaregistrar\EPP\eppContactPostalInfo

getPostalInfoLength() public method

Gets the total number of postalinfo objects this contact holds
public getPostalInfoLength ( ) : integer
return integer

getStatus() public method

Sets the status
public getStatus ( ) : string
return string status

getType() public method

public getType ( )

getVoice() public method

Gets the phone number
public getVoice ( ) : string
return string

setDisclose() public method

public setDisclose ( $disclose )

setEmail() public method

Sets the email address
public setEmail ( string $email ) : void
$email string
return void

setFax() public method

Sets the fax number
public setFax ( integer $fax ) : void
$fax integer
return void

setPassword() public method

**NOTE** This is not used by most registries at the moment, but they do require it to be given
public setPassword ( string $password ) : void
$password string
return void

setStatus() public method

Sets the status
public setStatus ( string $status )
$status string

setType() public method

public setType ( $type )

setVoice() public method

Sets the phone number
public setVoice ( integer $voice ) : void
$voice integer
return void