You are here

public function PuSHSubscriptionInterface::__construct in Feeds 8.2

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 lib/Drupal/feeds/PuSHSubscription.php
Create a subscription.

File

lib/Drupal/feeds/PuSHSubscriber.php, line 346
Pubsubhubbub subscriber library.

Class

PuSHSubscriptionInterface
Implement to provide a storage backend for subscriptions.

Namespace

Drupal\feeds

Code

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