protected function Feed::absolutiseUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php \Zend\Feed\Reader\Extension\Atom\Feed::absolutiseUri()
Attempt to absolutise the URI, i.e. if a relative URI apply the xml:base value as a prefix to turn into an absolute URI.
3 calls to Feed::absolutiseUri()
- Feed::getFeedLink in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Feed.php - Get a link to the feed's XML Url
- Feed::getHubs in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Feed.php - Get an array of any supported Pusubhubbub endpoints
- Feed::getLink in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Feed.php - Get a link to the source website
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Feed.php, line 483
Class
Namespace
Zend\Feed\Reader\Extension\AtomCode
protected function absolutiseUri($link) {
if (!Uri::factory($link)
->isAbsolute()) {
if ($this
->getBaseUrl() !== null) {
$link = $this
->getBaseUrl() . $link;
if (!Uri::factory($link)
->isValid()) {
$link = null;
}
}
}
return $link;
}