ILIAS  release_8 Revision v8.24
class.ilCalendarAppointmentBaseFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
27{
28 public static function getClassBaseName($a_appointment): string
29 {
30 $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
32 $cat_info["type"] = $cat->getType();
33 $cat_info["obj_id"] = $cat->getObjId();
34 switch ($cat_info['type']) {
36 $type = ilObject::_lookupType($cat_info['obj_id']);
37 switch ($type) {
38 case "crs":
39 return "Course";
40
41 case "grp":
42 return "Group";
43
44 case "sess":
45 return "Session";
46
47 case "exc":
48 return "Exercise";
49
50 case "etal":
51 return "EmployeeTalk";
52
53 default:
54 return "";
55 }
56 break;
58 return "User";
59
61 return "Public";
62
64 return "ConsultationHours";
65
67 return "BookingPool";
68
69 default:
70 return "";
71 }
72 }
73}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByCategoryId(int $a_cat_id)
static _lookupType(int $id, bool $reference=false)
$type