public function Subscriber::setPreferredVerificationMode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/Subscriber.php \Zend\Feed\PubSubHubbub\Subscriber::setPreferredVerificationMode()
Set preferred verification mode (sync or async). By default, this Subscriber prefers synchronous verification, but does support asynchronous if that's the Hub Server's utilised mode.
Zend\Feed\Pubsubhubbub\Subscriber will always send both modes, whose order of occurrence in the parameter list determines this preference.
Parameters
string $mode Should be 'sync' or 'async':
Return value
Throws
Exception\InvalidArgumentException
1 call to Subscriber::setPreferredVerificationMode()
- Subscriber::setOptions in vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php - Process any injected configuration options
File
- vendor/
zendframework/ zend-feed/ src/ PubSubHubbub/ Subscriber.php, line 296
Class
Namespace
Zend\Feed\PubSubHubbubCode
public function setPreferredVerificationMode($mode) {
if ($mode !== PubSubHubbub::VERIFICATION_MODE_SYNC && $mode !== PubSubHubbub::VERIFICATION_MODE_ASYNC) {
throw new Exception\InvalidArgumentException('Invalid preferred' . ' mode specified: "' . $mode . '" but should be one of' . ' Zend\\Feed\\Pubsubhubbub::VERIFICATION_MODE_SYNC or' . ' Zend\\Feed\\Pubsubhubbub::VERIFICATION_MODE_ASYNC');
}
$this->preferredVerificationMode = $mode;
return $this;
}