ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAppointmentPresentationFactory.php
Go to the documentation of this file.
1 <?php
2 
3 include_once("./Services/Calendar/classes/Appointment/class.ilCalendarAppointmentBaseFactory.php");
4 
14 {
15  public static function getInstance($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
16  {
17  global $lng;
18 
19  include_once('./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
20 
21  //get object info
22  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
23  //echo "---";
24  //var_dump($cat_id);
25  //$cat_info = ilCalendarCategories::_getInstance()->getCategoryInfo($cat_id);
27  $cat_info["type"] = $cat->getType();
28  $cat_info["obj_id"] = $cat->getObjId();
29  //var_dump($cat_info['obj_id']);
30  //var_dump(ilObject::_lookupType($cat_info['obj_id']));
31  //ilUtil::printBacktrace(10); exit;
32 
33  $class_base = self::getClassBaseName($a_appointment);
34 
35  $class_name = "ilAppointmentPresentation" . $class_base . "GUI";
36  require_once "./Services/Calendar/classes/AppointmentPresentation/class." . $class_name . ".php";
37 
38  return $class_name::getInstance($a_appointment, $a_info_screen, $a_toolbar, $a_list_item);
39  }
40 }
static _lookupCategory($a_cal_id)
Lookup category id.
static getInstance($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
global $lng
Definition: privfeed.php:17