ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilCalendarAppointmentBaseFactory Class Reference
+ Inheritance diagram for ilCalendarAppointmentBaseFactory:
+ Collaboration diagram for ilCalendarAppointmentBaseFactory:

Static Public Member Functions

static getClassBaseName ($a_appointment)
 

Detailed Description

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

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

Member Function Documentation

◆ getClassBaseName()

static ilCalendarAppointmentBaseFactory::getClassBaseName (   $a_appointment)
static

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

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

13  {
14  include_once('./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
15  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
17  $cat_info["type"] = $cat->getType();
18  $cat_info["obj_id"] = $cat->getObjId();
19 
20  if ($a_appointment['event']->isMilestone()) {
21  return "Milestone";
22  }
23 
24  switch ($cat_info['type']) {
26  $type = ilObject::_lookupType($cat_info['obj_id']);
27  switch ($type) {
28  case "crs":
29  return "Course";
30 
31  case "grp":
32  return "Group";
33 
34  case "sess":
35  return "Session";
36 
37  case "exc":
38  return "Exercise";
39 
40  default:
41  return "";
42  }
43  break;
45  return "User";
46 
48  return "Public";
49 
51  return "ConsultationHours";
52 
54  return "BookingPool";
55 
56  default:
57  return "";
58  }
59  }
static _lookupCategory($a_cal_id)
Lookup category id.
$type
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

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