protected function Callback::_detectVerifyTokenKey in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber/Callback.php \Zend\Feed\PubSubHubbub\Subscriber\Callback::_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 $httpGetData:
Return value
false|string
2 calls to Callback::_detectVerifyTokenKey()
- Callback::handle in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber/ Callback.php - 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.
- Callback::_hasValidVerifyToken in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber/ Callback.php - Check for a valid verify_token. By default attempts to compare values with that sent from Hub, otherwise merely ascertains its existence.
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber/ Callback.php, line 253
Class
Namespace
Zend\Feed\PubSubHubbub\SubscriberCode
protected function _detectVerifyTokenKey(array $httpGetData = null) {
/**
* Available when sub keys encoding in Callback URL path
*/
if (isset($this->subscriptionKey)) {
return $this->subscriptionKey;
}
/**
* Available only if allowed by PuSH 0.2 Hubs
*/
if (is_array($httpGetData) && isset($httpGetData['xhub_subscription'])) {
return $httpGetData['xhub_subscription'];
}
/**
* Available (possibly) if corrupted in transit and not part of $_GET
*/
$params = $this
->_parseQueryString();
if (isset($params['xhub.subscription'])) {
return rawurldecode($params['xhub.subscription']);
}
return false;
}