4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
28 $this->ctrl = $DIC->ctrl();
33 parent::__construct($a_parent_obj, $a_parent_cmd);
37 $this->
addColumn($this->lng->txt(
"exc_peer_review_recipient"),
"recipient");
38 $this->
addColumn($this->lng->txt(
"exc_peer_review_giver"),
"giver");
39 $this->
addColumn($this->lng->txt(
"status"),
"status");
43 $this->
setRowTemplate(
"tpl.exc_peer_review_overview_row.html",
"Modules/Exercise");
46 $this->
setTitle($a_ass->
getTitle() .
": " . $this->lng->txt(
"exc_peer_review_overview"));
52 $this->
addCommandButton(
"confirmResetPeerReview", $this->lng->txt(
"exc_peer_review_reset"));
57 if (!is_array($a_user_ids) && is_numeric($a_user_ids)) {
58 $a_user_ids = array($a_user_ids);
63 include_once
"Services/User/classes/class.ilUserUtil.php";
64 foreach (array_unique($a_user_ids) as $user_id) {
83 include_once(
"./Modules/Exercise/classes/class.ilExPeerReview.php");
85 $tmp = $peer_review->validatePeerReviewGroups();
87 if (!is_array($tmp)) {
91 foreach ($tmp[
"reviews"] as $peer_id => $reviews) {
94 foreach ($reviews as $giver_id => $status) {
95 $data[] = array(
"recipient" => $peer,
97 "status" => ($status ? $this->lng->txt(
"valid") :
""));
101 if ($tmp[
"missing_user_ids"]) {
102 $this->panel_info[] = array(
103 "title" => $this->lng->txt(
"exc_peer_review_missing_users"),
108 if ($tmp[
"not_returned_ids"]) {
109 $this->panel_info[] = array(
110 "title" => $this->lng->txt(
"exc_peer_review_not_returned_users"),
115 if ($tmp[
"invalid_peer_ids"]) {
116 $this->panel_info[] = array(
117 "title" => $this->lng->txt(
"exc_peer_review_invalid_peer_ids"),
122 if ($tmp[
"invalid_giver_ids"]) {
123 $this->panel_info[] = array(
124 "title" => $this->lng->txt(
"exc_peer_review_invalid_giver_ids"),
134 $this->tpl->setVariable(
"PEER", $a_set[
"recipient"]);
135 $this->tpl->setVariable(
"GIVER", $a_set[
"giver"]);
136 $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.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
translateUserIds($a_user_ids, $a_implode=false)
foreach($_POST as $key=> $value) $res
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
List all peer groups for assignment.
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.
__construct($a_parent_obj, $a_parent_cmd, ilExAssignment $a_ass)
Constructor.
setLimit($a_limit=0, $a_default_limit=0)