ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAppointmentExerciseFileHandler.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Calendar/interfaces/interface.ilAppointmentFileHandler.php");
6include_once("./Services/Calendar/classes/FileHandler/class.ilAppointmentBaseFileHandler.php");
7
15{
22 public function getFiles()
23 {
24 $ass_id = $this->appointment['event']->getContextId() / 10; // see ilExAssignment->handleCalendarEntries $dl parameter
25 $assignment = new ilExAssignment($ass_id);
26 $ass_files = $assignment->getFiles();
27 $files = array();
28 if (count($ass_files) && !$assignment->notStartedYet()) {
29 foreach ($ass_files as $ass_file) {
30 $files[] = $ass_file['fullpath'];
31 }
32 }
33 return $files;
34 }
35}
$files
Definition: add-vimline.php:18
An exception for terminatinating execution or to throw for unit testing.
Base file handler class for appointment classes.
Exercise assignment.
Appointemtn file handler interface.