You are here

public function Atom::getAuthors in Zircon Profile 8

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

Get an array with feed authors

Return value

array

Overrides FeedInterface::getAuthors

1 call to Atom::getAuthors()
Atom::getAuthor in vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php
Get a single author

File

vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php, line 69

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

public function getAuthors() {
  if (array_key_exists('authors', $this->data)) {
    return $this->data['authors'];
  }
  $authors = $this
    ->getExtension('Atom')
    ->getAuthors();
  $this->data['authors'] = $authors;
  return $this->data['authors'];
}