4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->submission = $a_submission;
27 parent::__construct($a_parent_obj, $a_parent_cmd);
28 $this->
setData($this->submission->getFiles());
29 $this->
setTitle($this->lng->txt(
"already_delivered_files").
" - ".
30 $this->submission->getAssignment()->getTitle());
33 $this->
addColumn($this->lng->txt(
""),
"",
"1", 1);
34 $this->
addColumn($this->lng->txt(
"filename"),
"filetitle");
39 $this->lng->loadLanguageModule(
"file");
40 $this->
addColumn($this->lng->txt(
"file_uploaded_by"));
41 include_once
"Services/User/classes/class.ilUserUtil.php";
44 $this->
addColumn($this->lng->txt(
"date"),
"timestamp14");
46 if($this->submission->getAssignment()->getExtendedDeadline())
48 $this->
addColumn($this->lng->txt(
"exc_late_submission"),
"late");
51 $this->
addColumn($this->lng->txt(
"action"));
56 $this->
setRowTemplate(
"tpl.delivered_file_row.html",
"Modules/Exercise");
60 if ($this->submission->canSubmit())
73 $this->tpl->setVariable(
"FILE_ID",
$file[
"returned_id"]);
74 $this->tpl->setVariable(
"DELIVERED_FILE",
$file[
"filetitle"]);
81 $this->tpl->setVariable(
"DELIVERED_OWNER",
85 if($this->submission->getAssignment()->getExtendedDeadline())
87 $this->tpl->setVariable(
"DELIVERED_LATE", (
$file[
"late"])
88 ?
'<span class="warning">'.$this->lng->txt(
"yes").
'</span>' 89 : $this->lng->txt(
"no"));
96 $this->tpl->setVariable(
"ACTION_TXT", $this->lng->txt(
"download"));
97 $this->tpl->setVariable(
"ACTION_URL",
$url);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct($a_parent_obj, $a_parent_cmd, ilExSubmission $a_submission)
Constructor.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getNamePresentation($a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false)
Default behaviour is:
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
fillRow($file)
Fill table row.
setEnableHeader($a_enableheader)
Set Enable Header.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
setEnableTitle($a_enabletitle)
Set Enable Title.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setLimit($a_limit=0, $a_default_limit=0)