ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilCalendarAppointmentBaseFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
27  public static function getClassBaseName($a_appointment): string
28  {
29  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
31  $cat_info["type"] = $cat->getType();
32  $cat_info["obj_id"] = $cat->getObjId();
33  switch ($cat_info['type']) {
35  $type = ilObject::_lookupType($cat_info['obj_id']);
36  switch ($type) {
37  case "crs":
38  return "Course";
39 
40  case "grp":
41  return "Group";
42 
43  case "sess":
44  return "Session";
45 
46  case "exc":
47  return "Exercise";
48 
49  case "etal":
50  return "EmployeeTalk";
51 
52  default:
53  return "";
54  }
55  break;
57  return "User";
58 
60  return "Public";
61 
63  return "ConsultationHours";
64 
66  return "BookingPool";
67 
68  default:
69  return "";
70  }
71  }
72 }
static getInstanceByCategoryId(int $a_cat_id)
static _lookupType(int $id, bool $reference=false)