PHP Класс Metaregistrar\EPP\eppContact

This will hold the complete contact info a registry can receive and give you
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
validatePhoneNumber ( integer $number ) : string Formats the phone number according to SIDN formatting rules

Описание методов

__construct() публичный Метод

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() публичный Метод

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

generateContactId() публичный Метод

public generateContactId ( ) : string
Результат string ContactId

generateRandomString() публичный статический Метод

public static generateRandomString ( $length = 10 )

getDisclose() публичный Метод

public getDisclose ( )

getEmail() публичный Метод

Gets the email address
public getEmail ( ) : string
Результат string

getFax() публичный Метод

Gets the fax number
public getFax ( ) : string
Результат string

getPassword() публичный Метод

Gets the password
public getPassword ( ) : string
Результат string

getPostalInfo() публичный Метод

Retrieve a postalInfo object by number
public getPostalInfo ( integer $line ) : Metaregistrar\EPP\eppContactPostalInfo
$line integer
Результат Metaregistrar\EPP\eppContactPostalInfo

getPostalInfoLength() публичный Метод

Gets the total number of postalinfo objects this contact holds
public getPostalInfoLength ( ) : integer
Результат integer

getStatus() публичный Метод

Sets the status
public getStatus ( ) : string
Результат string status

getType() публичный Метод

public getType ( )

getVoice() публичный Метод

Gets the phone number
public getVoice ( ) : string
Результат string

setDisclose() публичный Метод

public setDisclose ( $disclose )

setEmail() публичный Метод

Sets the email address
public setEmail ( string $email ) : void
$email string
Результат void

setFax() публичный Метод

Sets the fax number
public setFax ( integer $fax ) : void
$fax integer
Результат void

setPassword() публичный Метод

**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
Результат void

setStatus() публичный Метод

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

setType() публичный Метод

public setType ( $type )

setVoice() публичный Метод

Sets the phone number
public setVoice ( integer $voice ) : void
$voice integer
Результат void