ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAppointmentExerciseFileHandler Class Reference

Exercise appointment file handler. More...

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

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
 

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 ( )

Get files (for appointment)

Parameters

return array $files

Implements ilAppointmentFileHandler.

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

23 {
24 global $DIC;
25
26 $user_id = $DIC->user()->getId();
27
28 $ass_id = $this->appointment['event']->getContextId() / 10; // see ilExAssignment->handleCalendarEntries $dl parameter
29 $assignment = new ilExAssignment($ass_id);
30 $ass_files = $assignment->getFiles();
31 $files = array();
32 $state = ilExcAssMemberState::getInstanceByIds($assignment->getId(), $user_id);
33 if (count($ass_files) && $state->areInstructionsVisible()) {
34 foreach ($ass_files as $ass_file) {
35 $files[] = $ass_file['fullpath'];
36 }
37 }
38 return $files;
39 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
Exercise assignment.
static getInstanceByIds($a_ass_id, $a_user_id=0)
Get instance by IDs (recommended for consumer code)
$files
Definition: metarefresh.php:49
global $DIC
Definition: saml.php:7

References $DIC, $files, $state, and ilExcAssMemberState\getInstanceByIds().

+ Here is the call graph for this function:

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