ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
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 16 of file class.ilAppointmentFileHandlerFactory.php.

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

Referenced by ilDownloadFilesBackgroundTask\collectFiles().

17  {
18  $cat_id = ilCalendarCategoryAssignments::_lookupCategory($a_appointment['event']->getEntryId());
20  $cat_info["type"] = $cat->getType();
21  $cat_info["obj_id"] = $cat->getObjId();
22  $class_base = self::getClassBaseName($a_appointment);
23 
24  if (!in_array($class_base, ["Session", "Course", "ConsultationHours", "Exercise", "BookingPool"])) {
25  $class_base = "Dummy";
26  }
27  $class_name = "ilAppointment" . $class_base . "FileHandler";
28  return new $class_name($a_appointment);
29  }
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: