Révision ed9a13f1
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/feeds/libraries/PuSHSubscriber.inc | ||
---|---|---|
5 | 5 |
* Pubsubhubbub subscriber library. |
6 | 6 |
* |
7 | 7 |
* Readme |
8 |
* http://github.com/lxbarth/PuSHSubscriber |
|
8 |
* @see http://github.com/lxbarth/PuSHSubscriber
|
|
9 | 9 |
* |
10 | 10 |
* License |
11 |
* http://github.com/lxbarth/PuSHSubscriber/blob/master/LICENSE.txt |
|
11 |
* @see http://github.com/lxbarth/PuSHSubscriber/blob/master/LICENSE.txt
|
|
12 | 12 |
*/ |
13 | 13 |
|
14 | 14 |
/** |
... | ... | |
227 | 227 |
/** |
228 | 228 |
* Issue a subscribe or unsubcribe request to a PubsubHubbub hub. |
229 | 229 |
* |
230 |
* Compare to http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.2.html#anchor5 |
|
231 |
* |
|
230 | 232 |
* @param $hub |
231 | 233 |
* The URL of the hub's subscription endpoint. |
232 | 234 |
* @param $topic |
... | ... | |
236 | 238 |
* @param $callback_url |
237 | 239 |
* The subscriber's notifications callback URL. |
238 | 240 |
* |
239 |
* Compare to http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.2.html#anchor5 |
|
240 |
* |
|
241 | 241 |
* @todo Make concurrency safe. |
242 | 242 |
*/ |
243 | 243 |
protected function request($hub, $topic, $mode, $callback_url) { |
... | ... | |
247 | 247 |
'hub.mode' => $mode, |
248 | 248 |
'hub.topic' => $topic, |
249 | 249 |
'hub.verify' => 'sync', |
250 |
'hub.lease_seconds' => '', // Permanent subscription. |
|
250 |
// Permanent subscription. |
|
251 |
'hub.lease_seconds' => '', |
|
251 | 252 |
'hub.secret' => $secret, |
252 | 253 |
); |
253 | 254 |
$sub = new $this->subscription_class($this->domain, $this->subscriber_id, $hub, $topic, $secret, $mode, $post_fields); |
... | ... | |
325 | 326 |
* variables. |
326 | 327 |
*/ |
327 | 328 |
interface PuSHSubscriptionInterface { |
329 |
|
|
328 | 330 |
/** |
329 | 331 |
* @param $domain |
330 | 332 |
* A string that defines the domain in which the subscriber_id is unique. |
... | ... | |
367 | 369 |
* Delete a subscription. |
368 | 370 |
*/ |
369 | 371 |
public function delete(); |
372 |
|
|
370 | 373 |
} |
371 | 374 |
|
372 | 375 |
/** |
... | ... | |
374 | 377 |
* logging. |
375 | 378 |
*/ |
376 | 379 |
interface PuSHSubscriberEnvironmentInterface { |
380 |
|
|
377 | 381 |
/** |
378 | 382 |
* A message to be displayed to the user on the current page load. |
379 | 383 |
* |
... | ... | |
393 | 397 |
* A string that is either 'status', 'warning' or 'error'. |
394 | 398 |
*/ |
395 | 399 |
public function log($msg, $level = 'status'); |
400 |
|
|
396 | 401 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules