4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
30 parent::__construct($a_parent_obj, $a_parent_cmd);
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"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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)
Default behaviour is:
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
translateUserIds($a_user_ids, $a_implode=false)
setLimit($a_limit=0, $a_default_limit=0)
set max.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
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
List all peer groups for assignment.
__construct($a_parent_obj, $a_parent_cmd, ilExAssignment $a_ass)
Constructor.