You are here

public function Subscriber::setTopicUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 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

Subscriber

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

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

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;
}