ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCalendarAppointmentBaseFactory Class Reference
+ Inheritance diagram for ilCalendarAppointmentBaseFactory:
+ Collaboration diagram for ilCalendarAppointmentBaseFactory:

Static Public Member Functions

static getClassBaseName ($a_appointment)
 

Detailed Description

Member Function Documentation

◆ getClassBaseName()

static ilCalendarAppointmentBaseFactory::getClassBaseName (   $a_appointment)
static

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

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

27  : 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  }
static getInstanceByCategoryId(int $a_cat_id)
static _lookupType(int $id, bool $reference=false)
+ Here is the call graph for this function:

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