4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
34 $this->
addColumn($this->lng->txt(
"exc_peer_review_recipient"),
"recipient");
35 $this->
addColumn($this->lng->txt(
"exc_peer_review_giver"),
"giver");
36 $this->
addColumn($this->lng->txt(
"status"),
"status");
40 $this->
setRowTemplate(
"tpl.exc_peer_review_overview_row.html",
"Modules/Exercise");
41 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
43 $this->
setTitle($a_ass->
getTitle().
": ".$this->lng->txt(
"exc_peer_review_overview"));
49 $this->
addCommandButton(
"confirmResetPeerReview", $this->lng->txt(
"exc_peer_review_reset"));
54 if(!is_array($a_user_ids) && is_numeric($a_user_ids))
56 $a_user_ids = array($a_user_ids);
61 include_once
"Services/User/classes/class.ilUserUtil.php";
62 foreach(array_unique($a_user_ids) as $user_id)
83 $tmp = $this->ass->validatePeerReviewGroups();
90 foreach($tmp[
"reviews"] as $peer_id => $reviews)
94 foreach($reviews as $giver_id => $status)
96 $data[] = array(
"recipient" => $peer,
98 "status" => ($status ? $this->lng->txt(
"valid") :
""));
102 if($tmp[
"missing_user_ids"])
104 $this->panel_info[] = array(
105 "title" => $this->lng->txt(
"exc_peer_review_missing_users"),
110 if($tmp[
"not_returned_ids"])
112 $this->panel_info[] = array(
113 "title" => $this->lng->txt(
"exc_peer_review_not_returned_users"),
118 if($tmp[
"invalid_peer_ids"])
120 $this->panel_info[] = array(
121 "title" => $this->lng->txt(
"exc_peer_review_invalid_peer_ids"),
126 if($tmp[
"invalid_giver_ids"])
128 $this->panel_info[] = array(
129 "title" => $this->lng->txt(
"exc_peer_review_invalid_giver_ids"),
139 $this->tpl->setVariable(
"PEER", $a_set[
"recipient"]);
140 $this->tpl->setVariable(
"GIVER", $a_set[
"giver"]);
141 $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);