|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilRisReader:Public Member Functions | |
| __construct ($options=[]) | |
| parseString (string $string) | |
| Parse a string of RIS data. More... | |
| getRecords () | |
Data Fields | |
| const | RIS_EOL = "\r\n" |
| const | LINE_REGEX = '/^(([A-Z1-9]{2})\s+-(.*))|(.*)$/' |
Protected Member Functions | |
| parseArray (array $lines) | |
| Take an array of lines and parse them into an RIS record. More... | |
| cleanData (array &$lines) | |
| Clean up the data before processing. More... | |
Protected Attributes | |
| array | $data = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This class has been adapted from the original RISReader class in the abandoned technosophos/LibRIS library. Many thanks to technosophos for the original work!
Definition at line 24 of file class.ilRisReader.php.
| ilRisReader::__construct | ( | $options = [] | ) |
Definition at line 31 of file class.ilRisReader.php.
|
protected |
Clean up the data before processing.
| array | $lines | Indexed array of lines of data. |
Definition at line 108 of file class.ilRisReader.php.
Referenced by parseArray().
Here is the caller graph for this function:| ilRisReader::getRecords | ( | ) |
|
protected |
Take an array of lines and parse them into an RIS record.
Definition at line 57 of file class.ilRisReader.php.
References cleanData().
Referenced by parseString().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRisReader::parseString | ( | string | $string | ) |
Parse a string of RIS data.
This will parse an RIS record into a representative data structure.
| string | $string | RIS-formatted data in a string. |
| StreamContext | $context | The stream context (in desired) for handling the file. |
| array | An indexed array of individual sources, each of which is an associative array of entry details. (See LibRIS) |
Definition at line 48 of file class.ilRisReader.php.
References parseArray().
Here is the call graph for this function:
|
protected |
Definition at line 29 of file class.ilRisReader.php.
Referenced by getRecords().
| const ilRisReader::LINE_REGEX = '/^(([A-Z1-9]{2})\s+-(.*))|(.*)$/' |
Definition at line 27 of file class.ilRisReader.php.
| const ilRisReader::RIS_EOL = "\r\n" |
Definition at line 26 of file class.ilRisReader.php.
Referenced by ilBiblRisFileReaderWrapper\parseContent().