You are here

public function Creators::loadCreators in Bibliography Module 7

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

File

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

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;
  }
}