You are here

public function Creators::setCreators in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/bibtexParse/PARSECREATORS.php \Creators::setCreators()
  2. 6 bibtexParse/PARSECREATORS.php \Creators::setCreators()
  3. 7.3 plugins/biblio_style/bibtex/PARSECREATORS.php \Creators::setCreators()
  4. 7.2 modules/bibtexParse/PARSECREATORS.php \Creators::setCreators()

Update object with an array of authors.

Parameters

$authors: an array containing two keys "name" and "type" the name is the full name of the contributor which will be parsed into component pieces, and type contains a string indicating the author type

1 call to Creators::setCreators()
Creators::__construct in modules/bibtexParse/PARSECREATORS.php

File

modules/bibtexParse/PARSECREATORS.php, line 156
Classes Creators and PARSECREATORS.

Class

Creators

Code

public function setCreators($authors) {
  foreach ($authors as $author) {
    if (strlen(trim($author['name']))) {
      $this->authors[] = $this
        ->parseAuthor($author['name'], $author['type']);
    }
  }
}