38 $this->
lng = $DIC->language();
40 $this->
ctrl = $DIC->ctrl();
46 if ($this->state->areInstructionsVisible()) {
47 $inst = $this->ass->getInstructionPresentation();
51 "txt" => $this->
lng->txt(
"exc_instruction"),
63 $ass_files = $this->ass->getFiles();
65 if (count($ass_files) > 0) {
66 foreach ($ass_files as $file) {
68 if ($readable_ref_id > 0) {
73 "ilExerciseHandlerGUI",
75 \ilAssignmentPresentationGUI::class,
81 "txt" => $file[
"name"],
104 $ret[
"start_time"] = [
115 $late_dl =
"<br />" . sprintf(
$lng->
txt(
"exc_late_submission_warning"), $late_dl);
116 $late_dl =
'<span class="warning">' . $late_dl .
'</span>';
128 $prop =
$lng->
txt(
"exc_edit_until");
130 $prop =
$lng->
txt(
"exc_ended_on");
133 $ret[
"until"] = [
"txt" => $prop,
"value" => $until];
146 $ret[
"individual_deadline"] = [
"txt" =>
$lng->
txt(
"exc_individual_deadline"),
"value" => $until];
163 if ($submission->hasSubmitted()) {
165 $submitted = $submission->getSelectedObject();
166 if ($submitted?->getTimestamp() !==
"") {
167 $ret[
"submitted"] = [
168 "txt" => $this->
lng->txt(
"exc_last_submission"),
Class ilCtrl provides processing control methods.
clearParametersByClass(string $a_class)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstructionFileInfo(int $readable_ref_id=0)
ilExcAssMemberState $state
__construct(int $ass_id, int $user_id)
Exercise submission //TODO: This class has many static methods related to delivered "files".
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByIds(int $a_ass_id, int $a_user_id=0)
getOfficialDeadline()
Get official deadline (individual deadline, fixed deadline or calculated deadline (using relative dea...
getRemainingTimePresentation()
Remaining time presentation (based on official deadline)
exceededOfficialDeadline()
hasSubmissionStarted()
Check if the submission phase has started for the current user (if the assignment is generally starte...
getCommonDeadlinePresentation()
getRelativeDeadlinePresentation()
getOfficialDeadlinePresentation()
getGeneralStartPresentation()
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...