You are here

public function Feed::getNewFeedUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Feed.php \Zend\Feed\Reader\Extension\Podcast\Feed::getNewFeedUrl()

Get the entry's new feed url

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Feed.php, line 176

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

public function getNewFeedUrl() {
  if (isset($this->data['new-feed-url'])) {
    return $this->data['new-feed-url'];
  }
  $newFeedUrl = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/itunes:new-feed-url)');
  if (!$newFeedUrl) {
    $newFeedUrl = null;
  }
  $this->data['new-feed-url'] = $newFeedUrl;
  return $this->data['new-feed-url'];
}