ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilBiblFileReaderFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilBiblFileReaderFactory:
+ Collaboration diagram for ilBiblFileReaderFactory:

Public Member Functions

 getByType (int $type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
 
 getByType (int $type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
 

Detailed Description

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 Class ilBiblFileReaderFactory

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 23 of file class.ilBiblFileReaderFactory.php.

Member Function Documentation

◆ getByType()

ilBiblFileReaderFactory::getByType ( int  $type,
ilBiblEntryFactoryInterface  $entry_factory,
ilBiblFieldFactoryInterface  $field_factory,
ilBiblAttributeFactoryInterface  $attribute_factory 
)

Implements ilBiblFileReaderFactoryInterface.

Definition at line 25 of file class.ilBiblFileReaderFactory.php.

31 return match ($type) {
32 ilBiblTypeFactoryInterface::DATA_TYPE_BIBTEX => new ilBiblTexFileReader($entry_factory, $field_factory, $attribute_factory),
33 ilBiblTypeFactoryInterface::DATA_TYPE_RIS => new ilBiblRisFileReader($entry_factory, $field_factory, $attribute_factory),
34 default => throw new ilException("bibliografic type not found"),
35 };
36 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Base class for ILIAS Exception handling.
Interface ilBiblFileReaderInterface.

References ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX, and ilBiblTypeFactoryInterface\DATA_TYPE_RIS.


The documentation for this class was generated from the following file: