PHP Класс opensrs\Ops

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$CRLF
$_CRLF * indent character
$_MSGCNT
$_MSGTYPE_STD
$_OPS_VERSION
$_OPT
$_SESSID
$_SPACER
$_data
$_last_was_data_block
$_pointers

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

Метод Описание
PHP2XML ( $data ) : string Converts a PHP array into an OPS data_block tag.
XML2PHP ( $msg ) : mixed XML Parser that converts an OPS protocol message into a PHP array.
__construct ( $args = false ) Class constructor Initialize variables, logs, etc.
_convertData ( &$array, $indent ) : string Recursivly converts PHP data into XML.
_is_assoc ( &$array ) : boolean Determines if an array is associative or not, since PHP doesn't really distinguish between the two, but Perl/OPS does.
_quoteXMLChars ( $string ) : string Quotes special XML characters.
decode ( $in ) : mixed Accepts an OPS protocol message or an file handle and decodes the data into a PHP array.
encode ( $array ) : string Converts a PHP array into an OPS message.
socketStatus ( &$fh ) : boolean Checks a socket for timeout or EOF.

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

PHP2XML() публичный метод

Converts a PHP array into an OPS data_block tag.
public PHP2XML ( $data ) : string
Результат string OPS data_block tag

XML2PHP() публичный метод

XML Parser that converts an OPS protocol message into a PHP array.
public XML2PHP ( $msg ) : mixed
Результат mixed PHP array, or error

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

Class constructor Initialize variables, logs, etc.
public __construct ( $args = false )

_convertData() публичный метод

Recursivly converts PHP data into XML.
public _convertData ( &$array, $indent ) : string
Результат string XML string

_is_assoc() публичный метод

Determines if an array is associative or not, since PHP doesn't really distinguish between the two, but Perl/OPS does.
public _is_assoc ( &$array ) : boolean
Результат boolean true if the array is associative

_quoteXMLChars() публичный метод

Quotes special XML characters.
public _quoteXMLChars ( $string ) : string
Результат string quoted string

decode() публичный метод

Accepts an OPS protocol message or an file handle and decodes the data into a PHP array.
public decode ( $in ) : mixed
Результат mixed PHP array, or error

encode() публичный метод

Converts a PHP array into an OPS message.
public encode ( $array ) : string
Результат string OPS XML message

socketStatus() публичный метод

Checks a socket for timeout or EOF.
public socketStatus ( &$fh ) : boolean
Результат boolean true if the socket has timed out or is EOF

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

$CRLF публичное свойство

public $CRLF

$_CRLF публичное свойство

* indent character
public $_CRLF

$_MSGCNT публичное свойство

public $_MSGCNT

$_MSGTYPE_STD публичное свойство

public $_MSGTYPE_STD

$_OPS_VERSION публичное свойство

public $_OPS_VERSION

$_OPT публичное свойство

public $_OPT

$_SESSID публичное свойство

public $_SESSID

$_SPACER публичное свойство

public $_SPACER

$_data публичное свойство

public $_data

$_last_was_data_block публичное свойство

public $_last_was_data_block

$_pointers публичное свойство

public $_pointers