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

Member Function Documentation

◆ getFiles()

ilAppointmentExerciseFileHandler::getFiles ( )

@inheritDoc

Implements ilAppointmentFileHandler.

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

33 : array
34 {
35 // see ilExAssignment->handleCalendarEntries $dl parameter
36 $ass_id = $this->appointment['event']->getContextId() / 10;
37 $assignment = new ilExAssignment($ass_id);
38 $ass_files = $assignment->getFiles();
39 $files = [];
40 $state = ilExcAssMemberState::getInstanceByIds($assignment->getId(), $this->user->getId());
41 if (count($ass_files) && $state->areInstructionsVisible()) {
42 foreach ($ass_files as $ass_file) {
43 $file_property = new ilFileProperty();
44 $file_property->setAbsolutePath($ass_file['fullpath']);
45 $file_property->setFileName($ass_file['name']);
46 $file_property->setFileRId($ass_file['rid']);
47 $files[] = $file_property;
48 }
49 }
50 return $files;
51 }
Exercise assignment.
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)

References $ass_id, and ilExcAssMemberState\getInstanceByIds().

+ Here is the call graph for this function:

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