Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 39 and 311]

XMPPHP: The PHP XMPP Library Copyright (C) 2008  Nathanael C. Fritz This file is part of SleekXMPP. XMPPHP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Author: Nathanael C. Fritz fritzy@netflint.net>
Author: Stephan Wentz stephan@jabber.wentz.it>
Author: Michael Garvin gar@netflint.net>
Author: Alexander Birkner (https://github.com/BirknerAlex)
Copyright: 2008 Nathanael C. Fritz
File Size: 168 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Roster:: (8 methods):
  __construct()
  verifyRoster()
  addContact()
  getContact()
  isContact()
  setPresence()
  getPresence()
  getRoster()


Class: Roster  - X-Ref

XMPPHP Main Class

__construct($roster_array = array()   X-Ref
Constructor


verifyRoster($roster_array)   X-Ref
Check that a given roster array is of a valid structure (empty is still valid)

param: array $roster_array

addContact($jid, $subscription, $name='', $groups=array()   X-Ref
Add given contact to roster

param: string $jid
param: string $subscription
param: string $name
param: array $groups

getContact($jid)   X-Ref
Retrieve contact via jid

param: string $jid

isContact($jid)   X-Ref
Discover if a contact exists in the roster via jid

param: string $jid

setPresence($presence, $priority, $show, $status)   X-Ref
Set presence

param: string $presence
param: integer $priority
param: string $show
param: string $status

getPresence($jid)   X-Ref
No description

getRoster()   X-Ref
Get roster