Feed/Pubsubhubbub/Subscriber/Callback.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Pubsubhubbub
- Version
- $Id$
\Zend_Feed_Pubsubhubbub_Subscriber_Callback
- Parent(s)
- \Zend_Feed_Pubsubhubbub_CallbackAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_currentSubscriptionData = nullnullDetails- Type
- array

string $_feedUpdate = nullnullDetails- Type
- string

string $_subscriptionKey = nullnullDetails- Type
- string
Methods

_detectVerifyTokenKey(null | array $httpGetData = null) : false | stringAttempt to detect the verification token key. This would be passed in the Callback URL (which we are handling with this class!) as a URI path part (the last part by convention).
| Name | Type | Description |
|---|---|---|
| $httpGetData | null | array |
| Type | Description |
|---|---|
| false | string |

_hasValidVerifyToken(array $httpGetData = null, bool $checkValue = true) : boolCheck for a valid verify_token. By default attempts to compare values with that sent from Hub, otherwise merely ascertains its existence.
| Name | Type | Description |
|---|---|---|
| $httpGetData | array | |
| $checkValue | bool |
| Type | Description |
|---|---|
| bool |

_parseQueryString() : array | voidBuild an array of Query String parameters.
| Type | Description |
|---|---|
| array | void |

getFeedUpdate() : stringGets a newly received feed (Atom/RSS) sent by a Hub as an update to a Topic we've subscribed to.
| Type | Description |
|---|---|
| string |

handle(array $httpGetData = null, bool $sendResponseNow = false) : voidHandle any callback from a Hub Server responding to a subscription or unsubscription request. This should be the Hub Server confirming the the request prior to taking action on it.
| Name | Type | Description |
|---|---|---|
| $httpGetData | array | GET data if available and not in $_GET |
| $sendResponseNow | bool | Whether to send response now or when asked |

hasFeedUpdate() : boolCheck if any newly received feed (Atom/RSS) update was received
| Type | Description |
|---|---|
| bool |

isValidHubVerification(array $httpGetData) : boolChecks validity of the request simply by making a quick pass and confirming the presence of all REQUIRED parameters.
| Name | Type | Description |
|---|---|---|
| $httpGetData | array |
| Type | Description |
|---|---|
| bool |

setFeedUpdate(string $feed) : \Zend_Feed_Pubsubhubbub_Subscriber_CallbackSets a newly received feed (Atom/RSS) sent by a Hub as an update to a Topic we've subscribed to.
| Name | Type | Description |
|---|---|---|
| $feed | string |
| Type | Description |
|---|---|
| \Zend_Feed_Pubsubhubbub_Subscriber_Callback |

setSubscriptionKey(string $key) : \Zend_Feed_Pubsubhubbub_Subscriber_CallbackSet a subscription key to use for the current callback request manually.
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| \Zend_Feed_Pubsubhubbub_Subscriber_Callback |