ILIAS  release_8 Revision v8.24
ilCalendarAppointmentBaseFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilCalendarAppointmentBaseFactory:
+ Collaboration diagram for ilCalendarAppointmentBaseFactory:

Static Public Member Functions

static getClassBaseName ($a_appointment)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..com

Definition at line 26 of file class.ilCalendarAppointmentBaseFactory.php.

Member Function Documentation

◆ getClassBaseName()

static ilCalendarAppointmentBaseFactory::getClassBaseName (   $a_appointment)
static

Definition at line 28 of file class.ilCalendarAppointmentBaseFactory.php.

28 : 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 }
static getInstanceByCategoryId(int $a_cat_id)
static _lookupType(int $id, bool $reference=false)
$type

References $type, ilCalendarCategoryAssignments\_lookupCategory(), ilObject\_lookupType(), ilCalendarCategory\getInstanceByCategoryId(), ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.

Referenced by ilAppointmentFileHandlerFactory\getInstance(), and ilAppointmentPresentationFactory\getInstance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: