ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilBiblFileReaderFactory.php
Go to the documentation of this file.
1
<?
php
2
8
class
ilBiblFileReaderFactory
implements
ilBiblFileReaderFactoryInterface
9
{
10
14
public
function
getByType
(
$type
,
ilBiblEntryFactoryInterface
$entry_factory,
ilBiblFieldFactoryInterface
$field_factory,
ilBiblAttributeFactoryInterface
$attribute_factory)
15
{
16
switch
(
$type
) {
17
case
ilBiblTypeFactoryInterface::DATA_TYPE_BIBTEX
:
18
return
new
ilBiblTexFileReader
($entry_factory, $field_factory, $attribute_factory);
19
case
ilBiblTypeFactoryInterface::DATA_TYPE_RIS
:
20
return
new
ilBiblRisFileReader
($entry_factory, $field_factory, $attribute_factory);
21
default
:
22
throw
new
ilException
(
"bibliografic type not found"
);
23
}
24
}
25
}
ilException
$type
$type
Definition:
proxy_ylocal.php:10
ilBiblFileReaderFactoryInterface
Interface ilBiblFileReaderFactoryInterface.
Definition:
interface.ilBiblFileReaderFactoryInterface.php:8
ilBiblTypeFactoryInterface\DATA_TYPE_RIS
const DATA_TYPE_RIS
Definition:
interface.ilBiblTypeFactoryInterface.php:10
ilBiblTexFileReader
Class ilBiblRisFileReader.
Definition:
class.ilBiblTexFileReader.php:8
ilBiblEntryFactoryInterface
Interface ilBiblEntryFactoryInterface.
Definition:
interface.ilBiblEntryFactoryInterface.php:8
ilBiblFieldFactoryInterface
Interface ilBiblFieldFactoryInterface.
Definition:
interface.ilBiblFieldFactoryInterface.php:8
ilBiblFileReaderFactory\getByType
getByType($type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
Definition:
class.ilBiblFileReaderFactory.php:14
ilBiblAttributeFactoryInterface
Interface ilBiblAttributeFactoryInterface.
Definition:
interface.ilBiblAttributeFactoryInterface.php:8
ilBiblRisFileReader
Class ilBiblRisFileReader.
Definition:
class.ilBiblRisFileReader.php:8
php
ilBiblFileReaderFactory
Class ilBiblFileReaderFactory.
Definition:
class.ilBiblFileReaderFactory.php:8
ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX
const DATA_TYPE_BIBTEX
Definition:
interface.ilBiblTypeFactoryInterface.php:11
Modules
Bibliographic
classes
FileReader
class.ilBiblFileReaderFactory.php
Generated on Thu Jan 16 2025 19:01:59 for ILIAS by
1.8.13 (using
Doxyfile
)