コード例 #1
0
 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);
 }
コード例 #2
0
 function build($filename)
 {
     $this->filename = $filename;
     $parser = new StateBasedBibtexParser($this);
     $parser->parse($filename);
     //print_r(array_keys(&$this->builtdb));
     //print_r(&$this->builtdb);
 }