ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilBiblRisFileReaderWrapper.php
Go to the documentation of this file.
1<?php
2
3use LibRIS\RISReader;
4
11{
12
18 public function parseContent($content)
19 {
20 $RISReader = new RISReader();
21
22 $RISReader->parseString($content);
23
24 return $RISReader->getRecords();
25 }
26
27
34 public function parseFile($path_to_file)
35 {
36 $RISReader = new RISReader();
37
38 $RISReader->parseFile($path_to_file);
39
40 return $RISReader->getRecords();
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
Class ilBiblRisFileReaderWrapper.