ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilAppointmentBookingPoolFileHandler.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
13{
17 public function getFiles() : array
18 {
19 // context id is reservation id (see ilObjBookingPoolGUI->processBooking)
20 $res_id = $this->appointment['event']->getContextId();
21 $res = new ilBookingReservation($res_id);
22 $b_obj = new ilBookingObject($res->getObjectId());
23
24 $file_property = new ilFileProperty();
25 $file_property->setAbsolutePath($b_obj->getFileFullPath());
26 $file_property->setFileName($b_obj->getPostFile());
27 return [
28 $file_property
29 ];
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
Base file handler class for appointment classes.
a bookable ressource
Appointment file handler interface.
foreach($_POST as $key=> $value) $res