ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAppointmentBookingPoolFileHandler Class Reference

Booking Pool appointment file handler. More...

+ Inheritance diagram for ilAppointmentBookingPoolFileHandler:
+ Collaboration diagram for ilAppointmentBookingPoolFileHandler:

Public Member Functions

 getFiles ()
 
- Public Member Functions inherited from ilAppointmentBaseFileHandler
 __construct (array $a_appointment)
 
 getCatId (int $a_entry_id)
 
 getCatInfo ()
 

Additional Inherited Members

- Protected Attributes inherited from ilAppointmentBaseFileHandler
array $appointment
 
ilLogger $logger
 
ilAccessHandler $access
 
ilRbacSystem $rbacsystem
 
ilObjUser $user
 

Detailed Description

Booking Pool appointment file handler.

Author
Jesús López Reyes lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 14 of file class.ilAppointmentBookingPoolFileHandler.php.

Member Function Documentation

◆ getFiles()

ilAppointmentBookingPoolFileHandler::getFiles ( )

Implements ilAppointmentFileHandler.

Definition at line 19 of file class.ilAppointmentBookingPoolFileHandler.php.

References $res.

19  : array
20  {
21  // context id is reservation id (see ilObjBookingPoolGUI->processBooking)
22  $res_id = $this->appointment['event']->getContextId();
23  $res = new ilBookingReservation($res_id);
24  $b_obj = new ilBookingObject($res->getObjectId());
25 
26  $files = [];
27 
28  if ($b_obj->getFile() !== "") {
29  $file_property = new ilFileProperty();
30  $file_property->setAbsolutePath($b_obj->getFileFullPath());
31  $file_property->setFileName($b_obj->getFile());
32  $files[] = $file_property;
33  }
34 
35  if ($b_obj->getPostFile() !== "") {
36  $file_property = new ilFileProperty();
37  $file_property->setAbsolutePath($b_obj->getPostFileFullPath());
38  $file_property->setFileName($b_obj->getPostFile());
39  $files[] = $file_property;
40  }
41 
42  return $files;
43  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

The documentation for this class was generated from the following file: