ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAppointmentBookingPoolFileHandler Class Reference

Booking Pool appointment file handler. More...

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

Public Member Functions

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

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 28 of file class.ilAppointmentBookingPoolFileHandler.php.

Member Function Documentation

◆ getFiles()

ilAppointmentBookingPoolFileHandler::getFiles ( )

@inheritDoc

Implements ilAppointmentFileHandler.

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

33 : array
34 {
35 global $DIC;
36
37 // context id is reservation id (see ilObjBookingPoolGUI->processBooking)
38 $res_id = $this->appointment['event']->getContextId();
39 $res = new ilBookingReservation($res_id);
40 $b_obj = new ilBookingObject($res->getObjectId());
41 $objects_manager = $DIC->bookingManager()->internal()->domain()->objects($b_obj->getPoolId());
42
43 $files = [];
44
45 if ($objects_manager->hasObjectInfo($b_obj->getId())) {
46 $file_property = new ilFileProperty();
47 $file_property->setAbsolutePath($objects_manager->getObjectInfoPath($b_obj->getId()));
48 $file_property->setFileName($objects_manager->getObjectInfoFilename($b_obj->getId()));
49 $files[] = $file_property;
50 }
51
52 if ($objects_manager->hasBookingInfo($b_obj->getId())) {
53 $file_property = new ilFileProperty();
54 $file_property->setAbsolutePath($objects_manager->getBookingInfoPath($b_obj->getId()));
55 $file_property->setFileName($objects_manager->getBookingInfoFilename($b_obj->getId()));
56 $files[] = $file_property;
57 }
58
59 return $files;
60 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69
global $DIC
Definition: shib_login.php:26

References $DIC, and $res.


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