public function AbstractFeed::setBaseUrl in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::setBaseUrl()
Set the feed's base URL
Parameters
string $url:
Return value
Throws
Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php, line 429
Class
Namespace
Zend\Feed\WriterCode
public function setBaseUrl($url) {
if (empty($url) || !is_string($url) || !Uri::factory($url)
->isValid()) {
throw new Exception\InvalidArgumentException('Invalid parameter: "url" array value' . ' must be a non-empty string and valid URI/IRI');
}
$this->data['baseUrl'] = $url;
return $this;
}