33 $this->submission = $a_submission;
40 $this->
setData($this->submission->getFiles());
42 $this->
lng->txt(
"already_delivered_files") .
" - " .
43 $this->submission->getAssignment()->getTitle()
48 $this->
addColumn($this->
lng->txt(
"filename"),
"filetitle");
50 if ($this->submission->getAssignment()->getAssignmentType()->usesTeams() &&
51 $this->submission->getAssignment()->getAssignmentType()->usesFileUpload()) {
53 $this->
lng->loadLanguageModule(
"file");
57 $this->
addColumn($this->
lng->txt(
"date"),
"timestamp14");
59 if ($this->submission->getAssignment()->getExtendedDeadline()) {
60 $this->
addColumn($this->
lng->txt(
"exc_late_submission"),
"late");
68 $this->
setRowTemplate(
"tpl.delivered_file_row.html",
"Modules/Exercise");
72 if ($this->submission->canSubmit()) {
80 protected function fillRow(array $a_set): void
84 $this->tpl->setVariable(
"FILE_ID", $a_set[
"returned_id"]);
85 $this->tpl->setVariable(
"DELIVERED_FILE", htmlentities($a_set[
"filetitle"]));
90 if ($this->submission->getAssignment()->getAssignmentType()->usesTeams() &&
91 $this->submission->getAssignment()->getAssignmentType()->usesFileUpload()) {
92 $this->tpl->setVariable(
98 if ($this->submission->getAssignment()->getExtendedDeadline()) {
99 $this->tpl->setVariable(
"DELIVERED_LATE", ($a_set[
"late"])
100 ?
'<span class="warning">' . $this->
lng->txt(
"yes") .
'</span>' 101 : $this->
lng->txt(
"no"));
105 $ilCtrl->setParameter($this->
getParentObject(),
"delivered", $a_set[
"returned_id"]);
108 $this->tpl->setVariable(
"ACTION_TXT", $this->
lng->txt(
"download"));
109 $this->tpl->setVariable(
"ACTION_URL",
$url);
__construct(object $a_parent_obj, string $a_parent_cmd, ilExSubmission $a_submission)
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
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...
setFormAction(string $a_form_action, bool $a_multipart=false)
setEnableTitle(bool $a_enabletitle)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
disable(string $a_module_name)
ilExSubmission $submission
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)