adds useful method removeField

This commit is contained in:
Martin Monperrus
2016-09-02 15:14:06 +02:00
parent 97dd28d243
commit 4a067535b6
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -1207,6 +1207,13 @@ class BibEntry {
}
return $value;
}
/** removes a field from this bibtex entry */
function removeField($name) {
$name = strtolower($name);
unset($this->raw_fields[$name]);
unset($this->fields[$name]);
}
/** Sets a field of this bib entry. */
function setField($name, $value) {