function build($bibfilename, $handle = NULL) { $this->filename = $bibfilename; if ($handle == NULL) { $handle = fopen($bibfilename, "r"); } if (!$handle) { die('cannot open ' . $bibfilename); } $parser = new StateBasedBibtexParser($this); $parser->parse($handle); fclose($handle); //print_r(array_keys(&$this->builtdb)); //print_r(&$this->builtdb); }
function build($filename) { $this->filename = $filename; $parser = new StateBasedBibtexParser($this); $parser->parse($filename); //print_r(array_keys(&$this->builtdb)); //print_r(&$this->builtdb); }