You are here

function PARSEENTRIES::getLine in Bibliography Module 5

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

File

bibtexParse/PARSEENTRIES.php, line 194

Class

PARSEENTRIES

Code

function getLine() {
  if ($this->parseFile) {
    if (!feof($this->fid)) {
      do {
        $line = trim(fgets($this->fid));
      } while (!feof($this->fid) && !$line);
      return $line;
    }
    return FALSE;
  }
  else {
    do {
      $line = trim($this->bibtexString[$this->currentLine]);
      $this->currentLine++;
    } while ($this->currentLine < count($this->bibtexString) && !$line);
    return $line;
  }
}