ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilBiblFileReaderFactory.php
Go to the documentation of this file.
1 <?php
2 
24 {
25  public function getByType(
26  int $type,
27  ilBiblEntryFactoryInterface $entry_factory,
28  ilBiblFieldFactoryInterface $field_factory,
29  ilBiblAttributeFactoryInterface $attribute_factory
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  }
37 }
Interface ilBiblFileReaderInterface.
getByType(int $type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
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...
Interface ilBiblEntryFactoryInterface.
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...
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...