ILIAS  release_8 Revision v8.24
class.ilAppointmentFileHandlerFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
10{
16 public static function getInstance(array $a_appointment): ilAppointmentFileHandler
17 {
18 $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
20 $cat_info["type"] = $cat->getType();
21 $cat_info["obj_id"] = $cat->getObjId();
22 $class_base = self::getClassBaseName($a_appointment);
23
24 if (!in_array($class_base, ["Session", "Course", "ConsultationHours", "Exercise", "BookingPool"])) {
25 $class_base = "Dummy";
26 }
27 $class_name = "ilAppointment" . $class_base . "FileHandler";
28 return new $class_name($a_appointment);
29 }
30}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByCategoryId(int $a_cat_id)
Appointment file handler interface.