You are here

public function Feed::getItunesImage in Zircon Profile 8.0

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

Get the entry image

Return value

string

File

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

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

public function getItunesImage() {
  if (isset($this->data['image'])) {
    return $this->data['image'];
  }
  $image = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/itunes:image/@href)');
  if (!$image) {
    $image = null;
  }
  $this->data['image'] = $image;
  return $this->data['image'];
}