ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilAppointmentFileHandlerFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilAppointmentFileHandlerFactory
extends
ilCalendarAppointmentBaseFactory
26
{
32
public
static
function
getInstance
(array $a_appointment):
ilAppointmentFileHandler
33
{
34
$cat_id =
ilCalendarCategoryAssignments::_lookupCategory
($a_appointment[
'event'
]->getEntryId());
35
$cat =
ilCalendarCategory::getInstanceByCategoryId
($cat_id);
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
}
46
}
ilCalendarAppointmentBaseFactory
Definition:
class.ilCalendarAppointmentBaseFactory.php:25
ilAppointmentFileHandler
Appointment file handler interface.
Definition:
interface.ilAppointmentFileHandler.php:30
ilCalendarCategoryAssignments\_lookupCategory
static _lookupCategory(int $a_cal_id)
Definition:
class.ilCalendarCategoryAssignments.php:55
ilCalendarCategory\getInstanceByCategoryId
static getInstanceByCategoryId(int $a_cat_id)
Definition:
class.ilCalendarCategory.php:93
ilAppointmentFileHandlerFactory
Definition:
class.ilAppointmentFileHandlerFactory.php:25
ilAppointmentFileHandlerFactory\getInstance
static getInstance(array $a_appointment)
Definition:
class.ilAppointmentFileHandlerFactory.php:32
components
ILIAS
Calendar
classes
FileHandler
class.ilAppointmentFileHandlerFactory.php
Generated on Sun Aug 31 2025 23:02:28 for ILIAS by
1.8.13 (using
Doxyfile
)