ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilRisWrapper.php
Go to the documentation of this file.
1 <?php
2 require_once('./libs/composer/vendor/autoload.php');
4 
10 class ilRisWrapper {
11 
16  public function parseContent($content) {
17  $RISReader = new RISReader();
18 
19  $RISReader->parseString($content);
20 
21  return $RISReader->getRecords();
22  }
23 
24 
30  public function parseFile($path_to_file) {
31  $RISReader = new RISReader();
32 
33  $RISReader->parseFile($path_to_file);
34 
35  return $RISReader->getRecords();
36  }
37 }
parseFile($path_to_file)
Class ilRisWrapper.
The main class for parsing RIS files.
Definition: RISReader.php:60
parseContent($content)