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

Static Public Member Functions

static getInstance ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 
- Static Public Member Functions inherited from ilCalendarAppointmentBaseFactory
static getClassBaseName ($a_appointment)
 

Detailed Description

Author
Jesús López Reyes lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 13 of file class.ilAppointmentPresentationFactory.php.

Member Function Documentation

◆ getInstance()

static ilAppointmentPresentationFactory::getInstance (   $a_appointment,
  $a_info_screen,
  $a_toolbar,
  $a_list_item 
)
static

Definition at line 15 of file class.ilAppointmentPresentationFactory.php.

References $lng, ilCalendarCategoryAssignments\_lookupCategory(), and ilCalendarCategory\getInstanceByCategoryId().

Referenced by ilCalendarAppointmentPresentationGUI\getModalHTML(), and ilCalendarAppointmentPresentationGUI\modifyListItem().

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  }
static _lookupCategory($a_cal_id)
Lookup category id.
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
global $lng
Definition: privfeed.php:17
+ 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: