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",
80 "txt" => $file[
"name"],
103 $ret[
"start_time"] = [
114 $late_dl =
"<br />" . sprintf(
$lng->
txt(
"exc_late_submission_warning"), $late_dl);
115 $late_dl =
'<span class="warning">' . $late_dl .
'</span>';
127 $prop =
$lng->
txt(
"exc_edit_until");
129 $prop =
$lng->
txt(
"exc_ended_on");
132 $ret[
"until"] = [
"txt" => $prop,
"value" => $until];
145 $ret[
"individual_deadline"] = [
"txt" =>
$lng->
txt(
"exc_individual_deadline"),
"value" => $until];
162 if ($submission->hasSubmitted()) {
164 $submitted = $submission->getSelectedObject();
165 if ($submitted[
"ts"] !=
"") {
166 $ret[
"submitted"] = [
167 "txt" => $this->
lng->txt(
"exc_last_submission"),
Class ilCtrl provides processing control methods.
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
clearParametersByClass(string $a_class)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...