ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ($a_appointment)
 Constructor. More...
 
 getCatId ($a_entry_id)
 
 getCatInfo ()
 
 getFiles ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilAppointmentBaseFileHandler
static getInstance ($a_appointment)
 Get instance. More...
 
- Protected Attributes inherited from ilAppointmentBaseFileHandler
 $appointment
 
 $logger
 

Detailed Description

Session appointment file handler.

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

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

Member Function Documentation

◆ getFiles()

ilAppointmentSessionFileHandler::getFiles ( )

Get files (for appointment)

Parameters

return ilFileProperty[]

Implements ilAppointmentFileHandler.

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

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

References ilAppointmentBaseFileHandler\getCatInfo(), and ilObjectActivation\getItemsByEvent().

+ Here is the call graph for this function:

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