public function Subscriber::setTopicUrl 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::setTopicUrl()
Set the topic URL (RSS or Atom feed) to which the intended (un)subscribe event will relate
Parameters
string $url:
Return value
Throws
Exception\InvalidArgumentException
1 call to Subscriber::setTopicUrl()
- 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 194
Class
Namespace
Zend\Feed\PubSubHubbubCode
public function setTopicUrl($url) {
if (empty($url) || !is_string($url) || !Uri::factory($url)
->isValid()) {
throw new Exception\InvalidArgumentException('Invalid parameter "url"' . ' of "' . $url . '" must be a non-empty string and a valid' . ' URL');
}
$this->topicUrl = $url;
return $this;
}