ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 $DIC, $lng, ilCalendarCategoryAssignments\_lookupCategory(), and ilCalendarCategory\getInstanceByCategoryId().

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

16  {
17  global $DIC;
18 
19  $lng = $DIC['lng'];
20 
21  include_once('./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
22 
23  //get object info
24  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
25  //echo "---";
26  //var_dump($cat_id);
27  //$cat_info = ilCalendarCategories::_getInstance()->getCategoryInfo($cat_id);
29  $cat_info["type"] = $cat->getType();
30  $cat_info["obj_id"] = $cat->getObjId();
31  //var_dump($cat_info['obj_id']);
32  //var_dump(ilObject::_lookupType($cat_info['obj_id']));
33  //ilUtil::printBacktrace(10); exit;
34 
35  $class_base = self::getClassBaseName($a_appointment);
36 
37  $class_name = "ilAppointmentPresentation" . $class_base . "GUI";
38  require_once "./Services/Calendar/classes/AppointmentPresentation/class." . $class_name . ".php";
39 
40  return $class_name::getInstance($a_appointment, $a_info_screen, $a_toolbar, $a_list_item);
41  }
static _lookupCategory($a_cal_id)
Lookup category id.
global $DIC
Definition: saml.php:7
$lng
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
+ 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: