ILIAS  release_8 Revision v8.24
ilAppointmentExerciseFileHandler Class Reference

Exercise appointment file handler. More...

+ Inheritance diagram for ilAppointmentExerciseFileHandler:
+ Collaboration diagram for ilAppointmentExerciseFileHandler:

Public Member Functions

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

Exercise appointment file handler.

Author
Jesús López Reyes lopez.nosp@m.@lei.nosp@m.fos.d.nosp@m.e

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

Member Function Documentation

◆ getFiles()

ilAppointmentExerciseFileHandler::getFiles ( )

@inheritDoc

Implements ilAppointmentFileHandler.

Definition at line 19 of file class.ilAppointmentExerciseFileHandler.php.

19 : array
20 {
21 // see ilExAssignment->handleCalendarEntries $dl parameter
22 $ass_id = $this->appointment['event']->getContextId() / 10;
23 $assignment = new ilExAssignment($ass_id);
24 $ass_files = $assignment->getFiles();
25 $files = [];
26 $state = ilExcAssMemberState::getInstanceByIds($assignment->getId(), $this->user->getId());
27 if (count($ass_files) && $state->areInstructionsVisible()) {
28 foreach ($ass_files as $ass_file) {
29 $file_property = new ilFileProperty();
30 $file_property->setAbsolutePath($ass_file['fullpath']);
31 $file_property->setFileName($ass_file['name']);
32
33 $files[] = $file_property;
34 }
35 }
36 return $files;
37 }
Exercise assignment.
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)

References ilExcAssMemberState\getInstanceByIds().

+ Here is the call graph for this function:

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