ILIAS  release_8 Revision v8.24
ilAppointmentSessionFileHandler Class Reference

Session appointment file handler. More...

+ Inheritance diagram for ilAppointmentSessionFileHandler:
+ Collaboration diagram for ilAppointmentSessionFileHandler:

Public Member Functions

 getFiles ()
 Get files (for appointment) 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

Session appointment file handler.

Author
Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ getFiles()

ilAppointmentSessionFileHandler::getFiles ( )

Get files (for appointment)

Parameters

return ilFileProperty[]

Implements ilAppointmentFileHandler.

Definition at line 21 of file class.ilAppointmentSessionFileHandler.php.

21 : array
22 {
23 $cat_info = $this->getCatInfo();
24
25 $eventItems = ilObjectActivation::getItemsByEvent($cat_info['obj_id']);
26 $files = [];
27 foreach ($eventItems as $obj) {
28 if ($obj["type"] == "file") {
29 if ($this->access->checkAccessOfUser($this->user->getId(), "read", "", (int)$obj['ref_id'])) {
30 $file = new ilObjFile((int)$obj['ref_id']);
31 $file_property = new ilFileProperty();
32 $file_property->setAbsolutePath($file->getFile());
33 $file_property->setFileName($file->getFileName());
34 $files[] = $file_property;
35 }
36 }
37 }
38 return $files;
39 }
Class ilObjFile.
static getItemsByEvent(int $event_id)
Get session material / event items.

References ILIAS\Repository\access(), ilAppointmentBaseFileHandler\getCatInfo(), and ilObjectActivation\getItemsByEvent().

+ Here is the call graph for this function:

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