You are here

public function Feed::getSummary 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::getSummary()

Get the entry summary

Return value

string

File

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

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

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