ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 28 of file class.ilAppointmentSessionFileHandler.php.

Member Function Documentation

◆ getFiles()

ilAppointmentSessionFileHandler::getFiles ( )

Get files (for appointment)

Parameters

return ilFileProperty[]

Implements ilAppointmentFileHandler.

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

35 : array
36 {
37 $cat_info = $this->getCatInfo();
38
39 $eventItems = ilObjectActivation::getItemsByEvent($cat_info['obj_id']);
40 $files = [];
41 foreach ($eventItems as $obj) {
42 if ($obj["type"] == "file") {
43 if ($this->access->checkAccessOfUser($this->user->getId(), "read", "", (int)$obj['ref_id'])) {
44 $file = new ilObjFile((int)$obj['ref_id']);
45 $file_property = new ilFileProperty();
46 $file_property->setAbsolutePath($file->getFile());
47 $file_property->setFileName($file->getFileName());
48 $files[] = $file_property;
49 }
50 }
51 }
52 return $files;
53 }
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: