protected function Entry::absolutiseUri in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::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.
Parameters
$link:
Return value
string
3 calls to Entry::absolutiseUri()
- Entry::getCommentFeedLink in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Entry.php - Returns a URI pointing to a feed of all comments for this entry
- Entry::getCommentLink in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Entry.php - Returns a URI pointing to the HTML page where comments can be made on this entry
- Entry::getLinks in vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Entry.php - Get all links
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ Atom/ Entry.php, line 555
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;
}