ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilBiblFileReaderFactory.php
Go to the documentation of this file.
1<?php
2
9{
10
14 public function getByType($type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
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 }
25}
An exception for terminatinating execution or to throw for unit testing.
Class ilBiblFileReaderFactory.
getByType($type, ilBiblEntryFactoryInterface $entry_factory, ilBiblFieldFactoryInterface $field_factory, ilBiblAttributeFactoryInterface $attribute_factory)
@inheritDoc
Class ilBiblRisFileReader.
Class ilBiblRisFileReader.
Base class for ILIAS Exception handling.
Interface ilBiblAttributeFactoryInterface.
Interface ilBiblEntryFactoryInterface.
Interface ilBiblFieldFactoryInterface.
Interface ilBiblFileReaderFactoryInterface.
$type