function PARSEENTRIES::getLine in Bibliography Module 5
Same name and namespace in other branches
- 6.2 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::getLine()
- 6 bibtexParse/PARSEENTRIES.php \PARSEENTRIES::getLine()
- 7.3 plugins/biblio_style/bibtex/PARSEENTRIES.php \PARSEENTRIES::getLine()
- 7 modules/bibtexParse/PARSEENTRIES.php \PARSEENTRIES::getLine()
- 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
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;
}
}