You are here

public function PuSHSubscriptionInterface::__construct in Feeds 6

Same name and namespace in other branches
  1. 7.2 libraries/PuSHSubscriber.inc \PuSHSubscriptionInterface::__construct()
  2. 7 libraries/PuSHSubscriber.inc \PuSHSubscriptionInterface::__construct()

Parameters

$domain: A string that defines the domain in which the subscriber_id is unique.

$subscriber_id: A unique numeric subscriber id.

$hub: The URL of the hub endpoint.

$topic: The topic to subscribe to.

$secret: A secret key used for message authentication.

$status: The status of the subscription. 'subscribe' - subscribing to a feed. 'unsubscribe' - unsubscribing from a feed. 'subscribed' - subscribed. 'unsubscribed' - unsubscribed. 'subscribe failed' - subscribe request failed. 'unsubscribe failed' - unsubscribe request failed.

$post_fields: An array of the fields posted to the hub.

1 method overrides PuSHSubscriptionInterface::__construct()
PuSHSubscription::__construct in plugins/FeedsHTTPFetcher.inc
Create a subscription.

File

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

Class

PuSHSubscriptionInterface
Implement to provide a storage backend for subscriptions.

Code

public function __construct($domain, $subscriber_id, $hub, $topic, $secret, $status = '', $post_fields = '');