PHP 클래스 opensrs\Ops

파일 보기 프로젝트 열기: opensrs/osrs-toolkit-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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