ILIAS  release_7 Revision v7.30-3-g800a261c036
ilAppointmentCourseFileHandler Class Reference

Course appointment file handler. More...

+ Inheritance diagram for ilAppointmentCourseFileHandler:
+ Collaboration diagram for ilAppointmentCourseFileHandler:

Public Member Functions

 getFiles ()
 @inheritDoc 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

Course appointment file handler.

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

Definition at line 13 of file class.ilAppointmentCourseFileHandler.php.

Member Function Documentation

◆ getFiles()

ilAppointmentCourseFileHandler::getFiles ( )

@inheritDoc

Implements ilAppointmentFileHandler.

Definition at line 18 of file class.ilAppointmentCourseFileHandler.php.

18 : array
19 {
20 $cat_info = $this->getCatInfo();
21
22 //checking permissions of the parent object.
23 // get course ref id (this is possible, since courses only have one ref id)
24 $refs = ilObject::_getAllReferences($cat_info['obj_id']);
25 $crs_ref_id = current($refs);
26
27 $files = [];
28 if ($this->access->checkAccessOfUser($this->user->getId(), "read", "", $crs_ref_id)) {
29 $course_files = ilCourseFile::_readFilesByCourse($cat_info['obj_id']);
30 foreach ($course_files as $course_file) {
31
32 $file_property = new ilFileProperty();
33 $file_property->setAbsolutePath($course_file->getAbsolutePath());
34 $file_property->setFileName($course_file->getFileName());
35
36 $files[] = $file_property;
37 }
38 }
39 return $files;
40 }
static _readFilesByCourse($a_course_id)
static _getAllReferences($a_id)
get all reference ids of object

References ilObject\_getAllReferences(), ilCourseFile\_readFilesByCourse(), and ilAppointmentBaseFileHandler\getCatInfo().

+ Here is the call graph for this function:

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