ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilAppointmentFileHandlerFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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...
Appointment file handler interface.
static getInstanceByCategoryId(int $a_cat_id)