ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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)
 

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.

References ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX, and ilBiblTypeFactoryInterface\DATA_TYPE_RIS.

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  }
Interface ilBiblFileReaderInterface.
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...

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