You are here

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

Get the entry subtitle

Return value

string

File

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

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

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