public function setSubscription($jid, $type, $cb = null) { $this->rosterSet('<item jid="' . htmlspecialchars($jid) . '" subscription="' . htmlspecialchars($type) . '" />', $cb); }