4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->ctrl = $DIC->ctrl();
26 $this->lng = $DIC->language();
28 $lng = $DIC->language();
30 $this->submission = $a_submission;
32 parent::__construct($a_parent_obj, $a_parent_cmd);
33 $this->
setData($this->submission->getFiles());
34 $this->
setTitle($this->lng->txt(
"already_delivered_files") .
" - " .
35 $this->submission->getAssignment()->getTitle());
38 $this->
addColumn($this->lng->txt(
""),
"",
"1", 1);
39 $this->
addColumn($this->lng->txt(
"filename"),
"filetitle");
43 $this->lng->loadLanguageModule(
"file");
44 $this->
addColumn($this->lng->txt(
"file_uploaded_by"));
45 include_once
"Services/User/classes/class.ilUserUtil.php";
48 $this->
addColumn($this->lng->txt(
"date"),
"timestamp14");
50 if ($this->submission->getAssignment()->getExtendedDeadline()) {
51 $this->
addColumn($this->lng->txt(
"exc_late_submission"),
"late");
54 $this->
addColumn($this->lng->txt(
"action"));
59 $this->
setRowTemplate(
"tpl.delivered_file_row.html",
"Modules/Exercise");
63 if ($this->submission->canSubmit()) {
75 $this->tpl->setVariable(
"FILE_ID",
$file[
"returned_id"]);
76 $this->tpl->setVariable(
"DELIVERED_FILE",
$file[
"filetitle"]);
82 $this->tpl->setVariable(
88 if ($this->submission->getAssignment()->getExtendedDeadline()) {
89 $this->tpl->setVariable(
"DELIVERED_LATE", (
$file[
"late"])
90 ?
'<span class="warning">' . $this->lng->txt(
"yes") .
'</span>' 91 : $this->lng->txt(
"no"));
98 $this->tpl->setVariable(
"ACTION_TXT", $this->lng->txt(
"download"));
99 $this->tpl->setVariable(
"ACTION_URL",
$url);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
__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.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
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.
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.
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.
setLimit($a_limit=0, $a_default_limit=0)