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

Static Public Member Functions

static getInstance ($a_appointment)
 
- Static Public Member Functions inherited from ilCalendarAppointmentBaseFactory
static getClassBaseName ($a_appointment)
 

Detailed Description

Member Function Documentation

◆ getInstance()

static ilAppointmentFileHandlerFactory::getInstance (   $a_appointment)
static

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

References ilCalendarCategoryAssignments\_lookupCategory(), array, and ilCalendarCategory\getInstanceByCategoryId().

Referenced by ilDownloadFilesBackgroundTask\collectFiles(), and ilCalendarFileHandler\downloadFilesForEvents().

14  {
15  include_once('./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
16  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
18  $cat_info["type"] = $cat->getType();
19  $cat_info["obj_id"] = $cat->getObjId();
20  $class_base = self::getClassBaseName($a_appointment);
21 
22 
23  // todo: provide more implementations
24  if (!in_array($class_base, array("Session", "Course", "ConsultationHours", "Exercise", "BookingPool"))) {
25  $class_base = "Dummy";
26  }
27 
28 
29  $class_name = "ilAppointment" . $class_base . "FileHandler";
30  require_once "./Services/Calendar/classes/FileHandler/class." . $class_name . ".php";
31 
32  return $class_name::getInstance($a_appointment);
33  }
static _lookupCategory($a_cal_id)
Lookup category id.
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.
Create styles array
The data for the language used.
+ 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: