4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
25 $this->exc_id = $a_exc_id;
26 $this->
setId(
"excass".$this->exc_id);
28 parent::__construct($a_parent_obj, $a_parent_cmd);
30 $this->
setTitle($lng->txt(
"exc_assignments"));
38 $this->
addColumn($this->lng->txt(
"title"),
"title");
39 $this->
addColumn($this->lng->txt(
"exc_assignment_type"),
"type");
40 $this->
addColumn($this->lng->txt(
"exc_presentation_order"),
"order_val");
41 $this->
addColumn($this->lng->txt(
"exc_start_time"),
"start_time");
42 $this->
addColumn($this->lng->txt(
"exc_deadline"),
"deadline");
43 $this->
addColumn($this->lng->txt(
"exc_mandatory"),
"mandatory");
44 $this->
addColumn($this->lng->txt(
"exc_peer_review"),
"peer");
45 $this->
addColumn($this->lng->txt(
"exc_instruction"),
"",
"30%");
46 $this->
addColumn($this->lng->txt(
"actions"));
56 $this->
setRowTemplate(
"tpl.exc_assignments_row.html",
"Modules/Exercise");
61 $this->
addMultiCommand(
"confirmAssignmentsDeletion", $lng->txt(
"delete"));
63 $this->
addCommandButton(
"orderAssignmentsByDeadline", $lng->txt(
"exc_order_by_deadline"));
75 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
76 include_once(
"./Modules/Exercise/classes/class.ilExPeerReview.php");
83 $data[$idx][
"peer_invalid"] =
true;
85 $peer_reviews = $peer_review->validatePeerReviewGroups();
86 $data[$idx][
"peer_invalid"] = $peer_reviews[
"invalid"];
89 $data[$idx][
"type"] = $types_map[
$row[
"type"]];
98 if(in_array($a_field,
array(
"order_val",
"deadline",
"start_time")))
112 $this->tpl->setVariable(
"ID",
$d[
"id"]);
114 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
117 if (
$d[
"deadline"] > 0)
120 if(
$d[
"deadline2"] > 0)
124 $this->tpl->setVariable(
"TXT_DEADLINE", $dl);
126 if (
$d[
"start_time"] > 0)
128 $this->tpl->setVariable(
"TXT_START_TIME",
131 $this->tpl->setVariable(
"TXT_INSTRUCTIONS",
136 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"yes"));
140 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"no"));
143 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
147 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"yes").
" (".
$d[
"peer_min"].
")");
149 if(
$d[
"peer_invalid"])
151 $this->tpl->setVariable(
"TXT_PEER_INVALID", $lng->txt(
"exc_peer_reviews_invalid_warning"));
154 if ($ass->afterDeadlineStrict())
156 $this->tpl->setVariable(
"TXT_PEER_OVERVIEW", $lng->txt(
"exc_peer_review_overview"));
157 $this->tpl->setVariable(
"CMD_PEER_OVERVIEW",
158 $ilCtrl->getLinkTargetByClass(
"ilexpeerreviewgui",
"showPeerReviewOverview"));
163 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"no"));
166 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
167 $this->tpl->setVariable(
"TXT_TYPE",
$d[
"type"]);
168 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
170 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
171 $this->tpl->setVariable(
"CMD_EDIT",
172 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment"));
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static getAssignmentDataOfExercise($a_exc_id)
Get assignments data of an exercise in an array.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
for($col=0; $col< 50; $col++) $d
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
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.
Create styles array
The data for the language used.
fillRow($d)
Fill table row.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_exc_id)
Constructor.
numericOrdering($a_field)
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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)