public function Creators::setCreators in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/bibtexParse/PARSECREATORS.php \Creators::setCreators()
- 6 bibtexParse/PARSECREATORS.php \Creators::setCreators()
- 7.3 plugins/biblio_style/bibtex/PARSECREATORS.php \Creators::setCreators()
- 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
Code
public function setCreators($authors) {
foreach ($authors as $author) {
if (strlen(trim($author['name']))) {
$this->authors[] = $this
->parseAuthor($author['name'], $author['type']);
}
}
}