You are here

protected function Subscriber::_generateVerifyToken in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::_generateVerifyToken()

Simple helper to generate a verification token used in (un)subscribe requests to a Hub Server. Follows no particular method, which means it might be improved/changed in future.

Return value

string

1 call to Subscriber::_generateVerifyToken()
Subscriber::_getRequestParameters in vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php
Return a list of standard protocol/optional parameters for addition to client's POST body that are specific to the current Hub Server URL

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php, line 757

Class

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

protected function _generateVerifyToken() {
  if (!empty($this->testStaticToken)) {
    return $this->testStaticToken;
  }
  return uniqid(rand(), true) . time();
}