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/Entry/Atom.php \Zend\Feed\Reader\Entry\Atom::getAuthors()

Get an array with feed authors

Return value

array

Overrides EntryInterface::getAuthors

1 call to Atom::getAuthors()
Atom::getAuthor in vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php
Get the specified author

File

vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php, line 73

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

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