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