/** * */ public static function getInstance() { if (self::$instance == NULL) { self::$instance = new refnotes_bibtex_parser(); } return self::$instance; }
/** * */ private function parseBibtex($text) { foreach (refnotes_bibtex_parser::getInstance()->parse($text) as $data) { $this->handleNote($data); } }