ILIAS
release_8 Revision v8.19
|
Class ilBiblFileReaderBase. More...
Public Member Functions | |
__construct (ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory) | |
ilBiblFileReaderBase constructor. More... | |
readContent (ResourceIdentification $identification) | |
getFileContent () | |
setFileContent (string $file_content) | |
parseContent () | |
parseContentToEntries (ilObjBibliographic $bib) | |
getEntryFactory () | |
getFieldFactory () | |
getAttributeFactory () | |
Data Fields | |
const | ATTRIBUTE_VALUE_MAXIMAL_TEXT_LENGTH = 4000 |
const | ENCODING_UTF_8 = 'UTF-8' |
const | ENCODING_ASCII = 'ASCII' |
const | ENCODING_ISO_8859_1 = 'ISO-8859-1' |
Protected Member Functions | |
convertStringToUTF8 (string $string) | |
Protected Attributes | |
string | $file_content = '' |
string | $path_to_file = '' |
ilBiblEntryFactoryInterface | $entry_factory |
ilBiblFieldFactoryInterface | $field_factory |
ilBiblAttributeFactoryInterface | $attribute_factory |
ILIAS ResourceStorage Services | $storage |
Class ilBiblFileReaderBase.
Definition at line 25 of file class.ilBiblFileReaderBase.php.
ilBiblFileReaderBase::__construct | ( | ilBiblEntryFactoryInterface | $entry_factory, |
ilBiblFieldFactoryInterface | $field_factory, | ||
ilBiblAttributeFactoryInterface | $attribute_factory | ||
) |
ilBiblFileReaderBase constructor.
Definition at line 48 of file class.ilBiblFileReaderBase.php.
References $attribute_factory, $DIC, $entry_factory, and $field_factory.
|
protected |
Definition at line 70 of file class.ilBiblFileReaderBase.php.
ilBiblFileReaderBase::getAttributeFactory | ( | ) |
Implements ilBiblFileReaderInterface.
Definition at line 190 of file class.ilBiblFileReaderBase.php.
References $attribute_factory.
Referenced by parseContentToEntries().
ilBiblFileReaderBase::getEntryFactory | ( | ) |
Implements ilBiblFileReaderInterface.
Definition at line 174 of file class.ilBiblFileReaderBase.php.
References $entry_factory.
Referenced by parseContentToEntries().
ilBiblFileReaderBase::getFieldFactory | ( | ) |
Implements ilBiblFileReaderInterface.
Definition at line 182 of file class.ilBiblFileReaderBase.php.
References $field_factory.
ilBiblFileReaderBase::getFileContent | ( | ) |
Definition at line 96 of file class.ilBiblFileReaderBase.php.
References $file_content.
Referenced by ilBiblTexFileReader\convertBibSpecialChars(), ilBiblTexFileReader\normalizeContent(), and ilBiblTexFileReader\parseContent().
|
abstract |
Referenced by parseContentToEntries(), and setFileContent().
ilBiblFileReaderBase::parseContentToEntries | ( | ilObjBibliographic | $bib | ) |
Implements ilBiblFileReaderInterface.
Definition at line 111 of file class.ilBiblFileReaderBase.php.
References Vendor\Package\$a, ILIAS\LTI\ToolProvider\$key, $type, getAttributeFactory(), getEntryFactory(), ilObject\getId(), parseContent(), ilStr\strLen(), and ilStr\subStr().
ilBiblFileReaderBase::readContent | ( | ResourceIdentification | $identification | ) |
Implements ilBiblFileReaderInterface.
Definition at line 62 of file class.ilBiblFileReaderBase.php.
References setFileContent().
ilBiblFileReaderBase::setFileContent | ( | string | $file_content | ) |
Definition at line 101 of file class.ilBiblFileReaderBase.php.
References $file_content, and parseContent().
Referenced by ilBiblTexFileReader\convertBibSpecialChars(), ilBiblTexFileReader\normalizeContent(), and readContent().
|
protected |
Definition at line 40 of file class.ilBiblFileReaderBase.php.
Referenced by __construct(), and getAttributeFactory().
|
protected |
Definition at line 38 of file class.ilBiblFileReaderBase.php.
Referenced by __construct(), and getEntryFactory().
|
protected |
Definition at line 39 of file class.ilBiblFileReaderBase.php.
Referenced by __construct(), and getFieldFactory().
|
protected |
Definition at line 36 of file class.ilBiblFileReaderBase.php.
Referenced by getFileContent(), and setFileContent().
|
protected |
Definition at line 37 of file class.ilBiblFileReaderBase.php.
|
protected |
Definition at line 42 of file class.ilBiblFileReaderBase.php.
const ilBiblFileReaderBase::ATTRIBUTE_VALUE_MAXIMAL_TEXT_LENGTH = 4000 |
Definition at line 32 of file class.ilBiblFileReaderBase.php.
const ilBiblFileReaderBase::ENCODING_ASCII = 'ASCII' |
Definition at line 34 of file class.ilBiblFileReaderBase.php.
const ilBiblFileReaderBase::ENCODING_ISO_8859_1 = 'ISO-8859-1' |
Definition at line 35 of file class.ilBiblFileReaderBase.php.
const ilBiblFileReaderBase::ENCODING_UTF_8 = 'UTF-8' |
Definition at line 33 of file class.ilBiblFileReaderBase.php.