ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 

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

Implements ilAppointmentFileHandler.

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

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

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  }
static getItemsByEvent(int $event_id)
Get session material / event items.
Class ilObjFile.
+ Here is the call graph for this function:

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