You are here

public function Subscriber::setCallbackUrl 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::setCallbackUrl()

Set the callback URL to be used by Hub Servers when communicating with this Subscriber

Parameters

string $url:

Return value

Subscriber

Throws

Exception\InvalidArgumentException

1 call to Subscriber::setCallbackUrl()
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 257

Class

Subscriber

Namespace

Zend\Feed\PubSubHubbub

Code

public function setCallbackUrl($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->callbackUrl = $url;
  return $this;
}