You are here

public function Feed::getAuthor in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php \Zend\Feed\Reader\Extension\Atom\Feed::getAuthor()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getAuthor()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getAuthor()

Get a single author

Parameters

int $index:

Return value

string|null

File

vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php, line 25

Class

Feed

Namespace

Zend\Feed\Reader\Extension\DublinCore

Code

public function getAuthor($index = 0) {
  $authors = $this
    ->getAuthors();
  if (isset($authors[$index])) {
    return $authors[$index];
  }
  return;
}