You are here

public function Entry::getCastAuthor in Zircon Profile 8

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

Get the entry author

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php, line 23

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

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