You are here

public function Creators::loadCreators in Bibliography Module 6

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

File

bibtexParse/PARSECREATORS.php, line 64

Class

Creators

Code

public function loadCreators($vid) {
  $query = 'SELECT bcd.lastname, bcd.firstname, bcd.initials,
					   bcd.affiliation, bct.type, bc.rank
				  FROM    {biblio_contributor} bc,
					 {biblio_contributor_data} bcd,
					 {biblio_contributor_type} bct
				  WHERE bc.vid = %d
				  	 AND bc.cid = bcd.cid
				  	 AND  bc.ctid = bct.ctid
				  ORDER BY bc.ctid ASC, bc.rank ASC;';
  $result = db_query($query, array(
    $vid,
  ));
  while ($creator = db_fetch_array($result)) {
    $this->authors[] = $creator;
  }
}