ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
}
ilAppointmentFileHandlerFactory
Definition:
class.ilAppointmentFileHandlerFactory.php:26
ilAppointmentFileHandlerFactory\getInstance
static getInstance(array $a_appointment)
Definition:
class.ilAppointmentFileHandlerFactory.php:32
ilCalendarAppointmentBaseFactory
Definition:
class.ilCalendarAppointmentBaseFactory.php:26
ilCalendarAppointmentBaseFactory\getClassBaseName
static getClassBaseName($a_appointment)
Definition:
class.ilCalendarAppointmentBaseFactory.php:27
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
ilAppointmentFileHandler
Appointment file handler interface.
Definition:
interface.ilAppointmentFileHandler.php:31
components
ILIAS
Calendar
classes
FileHandler
class.ilAppointmentFileHandlerFactory.php
Generated on Sat Oct 18 2025 23:02:42 for ILIAS by
1.9.4 (using
Doxyfile
)