public function sendSubscriptionRequest($to)
    {

        $presence = new \sb\XMPP\Presence();
        $presence->setTo($to);
        $presence->setType('subscribe');
        $presence->setFrom($this->jid);
        return $this->sendPresence($presence);

    }
public function sendSubscriptionRequest($to)
    {

        $presence = new \sb\XMPP\Presence();
        $presence->setTo($to);
        $presence->setType('subscribe');
        $presence->setFrom($this->jid);
        return $this->sendPresence($presence);

    }
public function sendSubscriptionRequest ( $ to ) { $ presence = new \ sb \ XMPP \ Presence ( ) ; $ presence -> setTo ( $ to ) ; $ presence -> setType ( 'subscribe' ) ; $ presence -> setFrom ( $ this -> jid ) ; return $ this -> sendPresence ( $ presence ) ; }
Sends a subscription request to a jid
@param string $to The hid to send the subscription request to
@return boolean
Sends a subscription request to a jid