|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($host=null, $port=null, $printlog=false, $loglevel=null, $is_server=false) | |
| __destruct () | |
| getLog () | |
| getId () | |
| useSSL ($use=true) | |
| addIdHandler ($id, $pointer, $obj=null) | |
| addHandler ($name, $ns, $pointer, $obj=null, $depth=1) | |
| addXPathHandler ($xpath, $pointer, $obj=null) | |
| addEventHandler ($name, $pointer, $obj) | |
| connect ($timeout=30, $persistent=false, $sendinit=true) | |
| doReconnect () | |
| setReconnectTimeout ($timeout) | |
| disconnect () | |
| isDisconnected () | |
| process () | |
| processTime ($timeout=NULL) | |
| processUntil ($event, $timeout=-1) | |
| Xapply_socket ($socket) | |
| startXML ($parser, $name, $attr) | |
| endXML ($parser, $name) | |
| charXML ($parser, $data) | |
| event ($name, $payload=null) | |
| read () | |
| send ($msg, $timeout=NULL) | |
| time () | |
| reset () | |
| setupParser () | |
| readyToProcess () | |
Protected Attributes | |
| $socket | |
| $parser | |
| $buffer | |
| $xml_depth = 0 | |
| $host | |
| $port | |
| $stream_start = '<stream>' | |
| $stream_end = '</stream>' | |
| $disconnected = false | |
| $sent_disconnect = false | |
| $ns_map = array() | |
| $current_ns = array() | |
| $xmlobj = null | |
| $nshandlers = array() | |
| $xpathhandlers = array() | |
| $idhandlers = array() | |
| $eventhandlers = array() | |
| $lastid = 0 | |
| $default_ns | |
| $until = '' | |
| $until_count = '' | |
| $until_happened = false | |
| $until_payload = array() | |
| $log | |
| $reconnect = true | |
| $been_reset = false | |
| $is_server | |
| $last_send = 0 | |
| $use_ssl = false | |
| $reconnectTimeout = 30 | |
Definition at line 49 of file XMLStream.php.
| __construct | ( | $ | host = null, |
| $ | port = null, |
||
| $ | printlog = false, |
||
| $ | loglevel = null, |
||
| $ | is_server = false |
||
| ) |
Constructor
| string | $host | |
| string | $port | |
| boolean | $printlog | |
| string | $loglevel | |
| boolean | $is_server |
Definition at line 180 of file XMLStream.php.

| __destruct | ( | ) |
Destructor Cleanup connection
Definition at line 193 of file XMLStream.php.

| addEventHandler | ( | $ | name, |
| $ | pointer, | ||
| $ | obj | ||
| ) |
Add Event Handler
| integer | $id | |
| string | $pointer | |
| string | $obj |
Definition at line 284 of file XMLStream.php.
| addHandler | ( | $ | name, |
| $ | ns, | ||
| $ | pointer, | ||
| $ | obj = null, |
||
| $ | depth = 1 |
||
| ) |
Add Handler
| string | $name | |
| string | $ns | |
| string | $pointer | |
| string | $obj | |
| integer | $depth |
Definition at line 247 of file XMLStream.php.
| addIdHandler | ( | $ | id, |
| $ | pointer, | ||
| $ | obj = null |
||
| ) |
Add ID Handler
| integer | $id | |
| string | $pointer | |
| string | $obj |
Definition at line 234 of file XMLStream.php.

| addXPathHandler | ( | $ | xpath, |
| $ | pointer, | ||
| $ | obj = null |
||
| ) |
Add XPath Handler
| string | $xpath | |
| string | $pointer | |
Definition at line 259 of file XMLStream.php.

| charXML | ( | $ | parser, |
| $ | data | ||
| ) |
XML character callback
| resource | $parser | |
| string | $data |
Definition at line 624 of file XMLStream.php.

Connect to XMPP Host
| integer | $timeout | |
| boolean | $persistent | |
| boolean | $sendinit |
Reimplemented in XMPPHP_BOSH.
Definition at line 295 of file XMLStream.php.


| disconnect | ( | ) |
Disconnect from XMPP Host
Definition at line 350 of file XMLStream.php.


| doReconnect | ( | ) |
Reconnect XMPP Host
Definition at line 334 of file XMLStream.php.


| endXML | ( | $ | parser, |
| $ | name | ||
| ) |
XML end callback
| resource | $parser | |
| string | $name |
Definition at line 540 of file XMLStream.php.

| event | ( | $ | name, |
| $ | payload = null |
||
| ) |
Event?
| string | $name | |
| string | $payload |
Definition at line 636 of file XMLStream.php.

| getId | ( | ) |
Get next ID
Definition at line 213 of file XMLStream.php.

| getLog | ( | ) |
| isDisconnected | ( | ) |
| process | ( | ) |
| processTime | ( | $ | timeout = NULL | ) |
Process until a timeout occurs
| integer | $timeout |
Definition at line 446 of file XMLStream.php.
| processUntil | ( | $ | event, |
| $ | timeout = -1 |
||
| ) |
Process until a specified event or a timeout occurs
| string | array | $event | |
| integer | $timeout |
Definition at line 461 of file XMLStream.php.


| read | ( | ) |
Read from socket
Definition at line 663 of file XMLStream.php.

| readyToProcess | ( | ) |
Definition at line 756 of file XMLStream.php.
| reset | ( | ) |
Reset connection
Reimplemented in XMPPHP_BOSH.
Definition at line 733 of file XMLStream.php.


| send | ( | $ | msg, |
| $ | timeout = NULL |
||
| ) |
Send to socket
| string | $msg |
Definition at line 682 of file XMLStream.php.


| setReconnectTimeout | ( | $ | timeout | ) |
Definition at line 343 of file XMLStream.php.
| setupParser | ( | ) |
Setup the XML parser
Definition at line 747 of file XMLStream.php.

| startXML | ( | $ | parser, |
| $ | name, | ||
| $ | attr | ||
| ) |
XML start callback
| resource | $parser | |
| string | $name |
Reimplemented in XMPPHP_XMPPOld.
Definition at line 499 of file XMLStream.php.

| time | ( | ) |
| Xapply_socket | ( | $ | socket | ) |
Obsolete?
Definition at line 487 of file XMLStream.php.
$been_reset = false [protected] |
Definition at line 153 of file XMLStream.php.
$buffer [protected] |
Definition at line 61 of file XMLStream.php.
$current_ns = array() [protected] |
Definition at line 97 of file XMLStream.php.
$default_ns [protected] |
Definition at line 125 of file XMLStream.php.
$disconnected = false [protected] |
Definition at line 85 of file XMLStream.php.
$eventhandlers = array() [protected] |
Definition at line 117 of file XMLStream.php.
$host [protected] |
Definition at line 69 of file XMLStream.php.
$idhandlers = array() [protected] |
Definition at line 113 of file XMLStream.php.
$is_server [protected] |
Definition at line 157 of file XMLStream.php.
$last_send = 0 [protected] |
Definition at line 161 of file XMLStream.php.
$lastid = 0 [protected] |
Definition at line 121 of file XMLStream.php.
$log [protected] |
Definition at line 145 of file XMLStream.php.
$ns_map = array() [protected] |
Definition at line 93 of file XMLStream.php.
$nshandlers = array() [protected] |
Definition at line 105 of file XMLStream.php.
$parser [protected] |
Definition at line 57 of file XMLStream.php.
$port [protected] |
Definition at line 73 of file XMLStream.php.
$reconnect = true [protected] |
Definition at line 149 of file XMLStream.php.
$reconnectTimeout = 30 [protected] |
Definition at line 169 of file XMLStream.php.
$sent_disconnect = false [protected] |
Definition at line 89 of file XMLStream.php.
$socket [protected] |
Definition at line 53 of file XMLStream.php.
$stream_end = '</stream>' [protected] |
Definition at line 81 of file XMLStream.php.
$stream_start = '<stream>' [protected] |
Definition at line 77 of file XMLStream.php.
$until = '' [protected] |
Definition at line 129 of file XMLStream.php.
$until_count = '' [protected] |
Definition at line 133 of file XMLStream.php.
$until_happened = false [protected] |
Definition at line 137 of file XMLStream.php.
$until_payload = array() [protected] |
Definition at line 141 of file XMLStream.php.
$use_ssl = false [protected] |
Definition at line 165 of file XMLStream.php.
$xml_depth = 0 [protected] |
Definition at line 65 of file XMLStream.php.
$xmlobj = null [protected] |
Definition at line 101 of file XMLStream.php.
$xpathhandlers = array() [protected] |
Definition at line 109 of file XMLStream.php.