PHP Класс Metaregistrar\EPP\eppBase

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$connection resource
$logentries array Contains the log entries when $logging = true
$logging boolean Determines if a log is output after the end of the script or not
$timeout integer Time-out value for the server connection

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

Метод Описание
create ( string $configfile, boolean | false $debug = false ) : mixed
getTimeout ( )
read ( boolean $nonBlocking = false ) : string This will read 1 response from the connection if there is one
setTimeout ( $timeout )
write ( string $content ) : boolean Write stuff over the EPP connection

Защищенные методы

Метод Описание
enableLogging ( ) Starts logging
showLog ( ) Shows the log when the script has ended
writeLog ( string $text, string $action ) Writes a new entry to the log

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

Метод Описание
addInteger ( string $content ) : string This adds the content-length to the content that is about to be written over the EPP Protocol
readInteger ( string $content ) : integer This parses the first 4 bytes into an integer for use to compare content-length

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

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

static public create ( string $configfile, boolean | false $debug = false ) : mixed
$configfile string
$debug boolean | false
Результат mixed

enableLogging() защищенный Метод

Starts logging
protected enableLogging ( )

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

public getTimeout ( )

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

This will read 1 response from the connection if there is one
public read ( boolean $nonBlocking = false ) : string
$nonBlocking boolean to prevent the blocking of the thread in case there is nothing to read and not wait for the timeout
Результат string

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

public setTimeout ( $timeout )

showLog() защищенный Метод

Shows the log when the script has ended
protected showLog ( )

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

Write stuff over the EPP connection
public write ( string $content ) : boolean
$content string
Результат boolean

writeLog() защищенный Метод

Writes a new entry to the log
protected writeLog ( string $text, string $action )
$text string
$action string

Описание свойств

$connection защищенное свойство

protected resource $connection
Результат resource

$logentries защищенное свойство

Contains the log entries when $logging = true
protected array $logentries
Результат array

$logging защищенное свойство

Determines if a log is output after the end of the script or not
protected bool $logging
Результат boolean

$timeout защищенное свойство

Time-out value for the server connection
protected int $timeout
Результат integer