You are here

public function PARSEENTRIES::openBib in Bibliography Module 7

Same name and namespace in other branches
  1. 5 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::openBib()
  2. 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::openBib()
  3. 6 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::openBib()
  4. 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::openBib()
  5. 7.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::openBib()

Open bib file.

Parameters

$file:

Return value

none

File

modules/bibtexParse/PARSEENTRIES.php, line 157

Class

PARSEENTRIES
// Parse a file $parse = NEW PARSEENTRIES(); $parse->expandMacro = TRUE; // $array = array("RMP" =>"Rev., Mod. Phys."); // $parse->loadStringMacro($array); // $parse->removeDelimit = FALSE; // …

Code

public function openBib($file) {
  if (!is_file($file)) {
    die;
  }
  ini_set('auto_detect_line_endings', TRUE);
  $this->fid = fopen($file, 'r');
  $this->parseFile = TRUE;
}