|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($roster_array=array()) | |
| addContact ($jid, $subscription, $name='', $groups=array()) | |
| getContact ($jid) | |
| isContact ($jid) | |
| setPresence ($presence, $priority, $show, $status) | |
| getPresence ($jid) | |
| getRoster () | |
Protected Member Functions | |
| verifyRoster ($roster_array) | |
Protected Attributes | |
| $roster_array = array() | |
Definition at line 41 of file Roster.php.
| __construct | ( | $ | roster_array = array() | ) |
| addContact | ( | $ | jid, |
| $ | subscription, | ||
| $ | name = '', |
||
| $ | groups = array() |
||
| ) |
Add given contact to roster
| string | $jid | |
| string | $subscription | |
| string | $name | |
| array | $groups |
Definition at line 80 of file Roster.php.


| getContact | ( | $ | jid | ) |
Retrieve contact via jid
| string | $jid |
Definition at line 95 of file Roster.php.

| getPresence | ( | $ | jid | ) |
| getRoster | ( | ) |
Get roster
Definition at line 159 of file Roster.php.
| isContact | ( | $ | jid | ) |
Discover if a contact exists in the roster via jid
| string | $jid |
Definition at line 107 of file Roster.php.

| setPresence | ( | $ | presence, |
| $ | priority, | ||
| $ | show, | ||
| $ | status | ||
| ) |
Set presence
| string | $presence | |
| integer | $priority | |
| string | $show | |
| string | $status |
Definition at line 120 of file Roster.php.

| verifyRoster | ( | $ | roster_array | ) | [protected] |
Check that a given roster array is of a valid structure (empty is still valid)
| array | $roster_array |
Definition at line 66 of file Roster.php.

$roster_array = array() [protected] |
Definition at line 47 of file Roster.php.