ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBiblFileReaderFactory Class Reference

Class ilBiblFileReaderFactory. More...

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

Public Member Functions

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

Detailed Description

Member Function Documentation

◆ getByType()

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

Implements ilBiblFileReaderFactoryInterface.

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

References $type, ilBiblTypeFactoryInterface\DATA_TYPE_BIBTEX, and ilBiblTypeFactoryInterface\DATA_TYPE_RIS.

15  {
16  switch ($type) {
18  return new ilBiblTexFileReader($entry_factory, $field_factory, $attribute_factory);
20  return new ilBiblRisFileReader($entry_factory, $field_factory, $attribute_factory);
21  default:
22  throw new ilException("bibliografic type not found");
23  }
24  }
$type
Class ilBiblRisFileReader.
Class ilBiblRisFileReader.

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