* added roster retrieval (doesn't do anything with it)

git-svn-id: svn://netflint.net/xmpphp@41 ef36c318-a008-4979-b6e8-6b496270793b
This commit is contained in:
fritzy 2008-05-16 17:27:41 +00:00
parent 4a4e27e91d
commit 8988f88683

View File

@ -277,6 +277,25 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
$this->send("<iq xmlns='jabber:client' type='set' id='$id'><session xmlns='urn:ietf:params:xml:ns:xmpp-session' /></iq>"); $this->send("<iq xmlns='jabber:client' type='set' id='$id'><session xmlns='urn:ietf:params:xml:ns:xmpp-session' /></iq>");
} }
/**
* Retrieves the roster
*
*/
public function getRoster() {
$id = $this->getID();
$this->addIdJHandler($id, 'roster_get_handler');
$this->send("<iq xmlns='jabber:client' type='get' id='$id'><query xmlns='jabber:iq:roster' /></iq>");
}
/**
* Roster retrieval handler
*
* @param string $xml
*/
protected function roster_get_handler($xml) {
// TODO: make this work
}
/** /**
* Session start handler * Session start handler
* *