public function Rss::getLink in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Reader/Entry/Rss.php \Zend\Feed\Reader\Entry\Rss::getLink()
- 8 vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php \Zend\Feed\Reader\Feed\Rss::getLink()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php \Zend\Feed\Reader\Feed\Rss::getLink()
Get a link to the feed
Return value
string|null
Overrides FeedInterface::getLink
1 call to Rss::getLink()
- Rss::getId in vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ Rss.php - Get the feed ID
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ Rss.php, line 472
Class
Namespace
Zend\Feed\Reader\FeedCode
public function getLink() {
if (array_key_exists('link', $this->data)) {
return $this->data['link'];
}
if ($this
->getType() !== Reader\Reader::TYPE_RSS_10 && $this
->getType() !== Reader\Reader::TYPE_RSS_090) {
$link = $this->xpath
->evaluate('string(/rss/channel/link)');
}
else {
$link = $this->xpath
->evaluate('string(/rdf:RDF/rss:channel/rss:link)');
}
if (empty($link)) {
$link = $this
->getExtension('Atom')
->getLink();
}
if (!$link) {
$link = null;
}
$this->data['link'] = $link;
return $this->data['link'];
}