Method |
Description |
|
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. |
|