37 $this->submission = $a_submission;
38 $subm = $DIC->exercise()->internal()->domain()->submission(
39 $this->submission->getAssignment()->getId()
48 foreach ($subm->getSubmissionsOfUser($a_submission->
getUserId()) as $s) {
55 $this->
lng->txt(
"already_delivered_files") .
" - " .
56 $this->submission->getAssignment()->getTitle()
61 $this->
addColumn($this->
lng->txt(
"filename"),
"filetitle");
63 if ($this->submission->getAssignment()->getAssignmentType()->usesTeams() &&
64 $this->submission->getAssignment()->getAssignmentType()->usesFileUpload()) {
66 $this->
lng->loadLanguageModule(
"file");
70 $this->
addColumn($this->
lng->txt(
"date"),
"timestamp14");
72 if ($this->submission->getAssignment()->getExtendedDeadline()) {
73 $this->
addColumn($this->
lng->txt(
"exc_late_submission"),
"late");
81 $this->
setRowTemplate(
"tpl.delivered_file_row.html",
"components/ILIAS/Exercise");
85 if ($this->submission->canSubmit()) {
93 protected function fillRow(array $a_set):
void 98 $sub = $a_set[
"submission"];
100 $this->tpl->setVariable(
"FILE_ID", $sub->getId());
101 $this->tpl->setVariable(
"DELIVERED_FILE", htmlentities($sub->getTitle()));
106 if ($this->submission->getAssignment()->getAssignmentType()->usesTeams() &&
107 $this->submission->getAssignment()->getAssignmentType()->usesFileUpload()) {
108 $this->tpl->setVariable(
114 if ($this->submission->getAssignment()->getExtendedDeadline()) {
115 $this->tpl->setVariable(
"DELIVERED_LATE", ($sub->getLate())
116 ?
'<span class="warning">' . $this->
lng->txt(
"yes") .
'</span>' 117 : $this->
lng->txt(
"no"));
121 $ilCtrl->setParameter($this->
getParentObject(),
"delivered", $sub->getId());
124 $this->tpl->setVariable(
"ACTION_TXT", $this->
lng->txt(
"download"));
125 $this->tpl->setVariable(
"ACTION_URL",
$url);
__construct(object $a_parent_obj, string $a_parent_cmd, ilExSubmission $a_submission)
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)
fillRow(array $a_set)
Standard Version of Fill Row.
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:
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)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
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)
Exercise submission //TODO: This class has many static methods related to delivered "files"...
disable(string $a_module_name)
ilExSubmission $submission
addMultiCommand(string $a_cmd, string $a_text)
setEnableHeader(bool $a_enableheader)