1874. Class

1874.1. Zend\Feed\PubSubHubbub\Subscriber\Callback

1874.1.1. Methods

1874.1.1.1. setSubscriptionKey

setSubscriptionKey()

Set a subscription key to use for the current callback request manually. Required if usePathParameter is enabled for the Subscriber.

Parameters:string
Return type:ZendFeedPubSubHubbubSubscriberCallback

1874.1.1.2. handle

handle()

Handle 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.

Parameters:
  • array – GET data if available and not in $_GET
  • bool – Whether to send response now or when asked
Return type:

void

1874.1.1.3. isValidHubVerification

isValidHubVerification()

Checks validity of the request simply by making a quick pass and confirming the presence of all REQUIRED parameters.

Parameters:array
Return type:bool

1874.1.1.4. setFeedUpdate

setFeedUpdate()

Sets a newly received feed (Atom/RSS) sent by a Hub as an update to a Topic we’ve subscribed to.

Parameters:string
Return type:ZendFeedPubSubHubbubSubscriberCallback

1874.1.1.5. hasFeedUpdate

hasFeedUpdate()

Check if any newly received feed (Atom/RSS) update was received

Return type:bool

1874.1.1.6. getFeedUpdate

getFeedUpdate()

Gets a newly received feed (Atom/RSS) sent by a Hub as an update to a Topic we’ve subscribed to.

Return type:string

1874.1.1.7. _hasValidVerifyToken

_hasValidVerifyToken()

Check for a valid verify_token. By default attempts to compare values with that sent from Hub, otherwise merely ascertains its existence.

Parameters:
  • array
  • bool
Return type:

bool

1874.1.1.8. _detectVerifyTokenKey

_detectVerifyTokenKey()

Attempt 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).

Parameters:null|array
Return type:false|string

1874.1.1.9. _parseQueryString

_parseQueryString()

Build an array of Query String parameters. This bypasses $_GET which munges parameter names and cannot accept multiple parameters with the same key.

Return type:array|void