ILIAS  release_8 Revision v8.24
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.

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 }
static getInstanceByCategoryId(int $a_cat_id)
Appointment file handler interface.

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

Referenced by ilDownloadFilesBackgroundTask\collectFiles().

+ 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: