ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAppointmentBookingPoolFileHandler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 {
33  public function getFiles(): array
34  {
35  // context id is reservation id (see ilObjBookingPoolGUI->processBooking)
36  $res_id = $this->appointment['event']->getContextId();
37  $res = new ilBookingReservation($res_id);
38  $b_obj = new ilBookingObject($res->getObjectId());
39 
40  $files = [];
41 
42  if ($b_obj->getFile() !== "") {
43  $file_property = new ilFileProperty();
44  $file_property->setAbsolutePath($b_obj->getFileFullPath());
45  $file_property->setFileName($b_obj->getFile());
46  $files[] = $file_property;
47  }
48 
49  if ($b_obj->getPostFile() !== "") {
50  $file_property = new ilFileProperty();
51  $file_property->setAbsolutePath($b_obj->getPostFileFullPath());
52  $file_property->setFileName($b_obj->getPostFile());
53  $files[] = $file_property;
54  }
55 
56  return $files;
57  }
58 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:66
Appointment file handler interface.
Base file handler class for appointment classes.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...