/** returns the underlying BibDataBase object */
 function getDB()
 {
     // by default set it from $_GET[Q_FILE]
     // first we set the database (load from disk or parse the bibtex file)
     if ($this->db == null) {
         list($db, $parsed, $updated, $saved) = _zetDB($_GET[Q_FILE]);
         $this->db = $db;
     }
     return $this->db;
 }
Example #2
0
 /** parses the $bibtex_filenames (usually semi-column separated) and returns an object of type BibDataBase.
 See also setDB()
 */
 function zetDB($bibtex_filenames)
 {
     list($db, $parsed, $updated, $saved) = _zetDB($bibtex_filenames);
     return $db;
 }