You are here

public function PuSHSubscriber::subscription in Feeds 7

Same name and namespace in other branches
  1. 6 libraries/PuSHSubscriber.inc \PuSHSubscriber::subscription()
  2. 7.2 libraries/PuSHSubscriber.inc \PuSHSubscriber::subscription()

Get the subscription associated with this subscriber.

Return value

A PuSHSubscriptionInterface object if a subscription exist, NULL otherwise.

4 calls to PuSHSubscriber::subscription()
PuSHSubscriber::receive in libraries/PuSHSubscriber.inc
Receive a notification.
PuSHSubscriber::subscribed in libraries/PuSHSubscriber.inc
Determine whether this subscriber is successfully subscribed or not.
PuSHSubscriber::unsubscribe in libraries/PuSHSubscriber.inc
@todo Unsubscribe from a hub. @todo Make sure we unsubscribe with the correct topic URL as it can differ from the initial subscription URL.
PuSHSubscriber::verifyRequest in libraries/PuSHSubscriber.inc
Verify a request. After a hub has received a subscribe or unsubscribe request (see PuSHSubscriber::request()) it sends back a challenge verifying that an action indeed was requested ($_GET['hub_challenge']). This method handles the challenge.

File

libraries/PuSHSubscriber.inc, line 282
Pubsubhubbub subscriber library.

Class

PuSHSubscriber
PubSubHubbub subscriber.

Code

public function subscription() {
  return call_user_func(array(
    $this->subscription_class,
    'load',
  ), $this->domain, $this->subscriber_id);
}