4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
26 $this->
setId(
"excass".$a_exc->getId());
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");
82 $data[$idx][
"peer_invalid"] =
true;
84 $peer_reviews = $ass->validatePeerReviewGroups();
85 $data[$idx][
"peer_invalid"] = $peer_reviews[
"invalid"];
88 $data[$idx][
"type"] = $types_map[
$row[
"type"]];
97 if(in_array($a_field, array(
"order_val",
"deadline",
"start_time")))
111 $this->tpl->setVariable(
"ID",
$d[
"id"]);
112 if (
$d[
"deadline"] > 0)
114 $this->tpl->setVariable(
"TXT_DEADLINE",
117 if (
$d[
"start_time"] > 0)
119 $this->tpl->setVariable(
"TXT_START_TIME",
122 $this->tpl->setVariable(
"TXT_INSTRUCTIONS",
127 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"yes"));
131 $this->tpl->setVariable(
"TXT_MANDATORY", $lng->txt(
"no"));
134 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
138 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"yes").
" (".
$d[
"peer_min"].
")");
140 if(
$d[
"peer_invalid"])
142 $this->tpl->setVariable(
"TXT_PEER_INVALID", $lng->txt(
"exc_peer_reviews_invalid_warning"));
145 $this->tpl->setVariable(
"TXT_PEER_OVERVIEW", $lng->txt(
"exc_peer_review_overview"));
146 $this->tpl->setVariable(
"CMD_PEER_OVERVIEW",
147 $ilCtrl->getLinkTarget($this->parent_obj,
"showPeerReviewOverview"));
151 $this->tpl->setVariable(
"TXT_PEER", $lng->txt(
"no"));
154 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
155 $this->tpl->setVariable(
"TXT_TYPE",
$d[
"type"]);
156 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
158 $this->tpl->setVariable(
"TXT_EDIT", $lng->txt(
"edit"));
159 $this->tpl->setVariable(
"CMD_EDIT",
160 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment"));