From 8988f88683270d18a193c095fcbadace8a30b2b8 Mon Sep 17 00:00:00 2001 From: fritzy Date: Fri, 16 May 2008 17:27:41 +0000 Subject: [PATCH] * added roster retrieval (doesn't do anything with it) git-svn-id: svn://netflint.net/xmpphp@41 ef36c318-a008-4979-b6e8-6b496270793b --- XMPPHP/XMPP.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index 2bb47ef..2465fd9 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -277,6 +277,25 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { $this->send(""); } + /** + * Retrieves the roster + * + */ + public function getRoster() { + $id = $this->getID(); + $this->addIdJHandler($id, 'roster_get_handler'); + $this->send(""); + } + + /** + * Roster retrieval handler + * + * @param string $xml + */ + protected function roster_get_handler($xml) { + // TODO: make this work + } + /** * Session start handler *