ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAppointmentFileHandlerFactory Class Reference
+ Inheritance diagram for ilAppointmentFileHandlerFactory:
+ Collaboration diagram for ilAppointmentFileHandlerFactory:

Static Public Member Functions

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

Detailed Description

Member Function Documentation

◆ getInstance()

static ilAppointmentFileHandlerFactory::getInstance ( array  $a_appointment)
static
Parameters
array$a_appointment
Returns
ilAppointmentFileHandler
Todo:
get rid of appointment array. Refactor to new appointment object

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

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

Referenced by ilDownloadFilesBackgroundTask\collectFiles().

33  {
34  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
36  $cat_info["type"] = $cat->getType();
37  $cat_info["obj_id"] = $cat->getObjId();
38  $class_base = self::getClassBaseName($a_appointment);
39 
40  if (!in_array($class_base, ["Session", "Course", "ConsultationHours", "Exercise", "BookingPool"])) {
41  $class_base = "Dummy";
42  }
43  $class_name = "ilAppointment" . $class_base . "FileHandler";
44  return new $class_name($a_appointment);
45  }
Appointment file handler interface.
static getInstanceByCategoryId(int $a_cat_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: