24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
46 public function __construct($a_parent_obj, $a_parent_cmd, $a_raters_mode =
false, $a_may_delete_rater =
false, $a_fallback_url = null)
48 parent::__construct($a_parent_obj, $a_parent_cmd);
52 $this->raters_mode = (bool)$a_raters_mode;
53 $this->fallback_url = trim($a_fallback_url);
61 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
62 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
63 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
65 if(!$this->raters_mode)
67 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
68 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
69 $this->
addColumn($this->lng->txt(
"actions"));
71 $this->
setTitle($this->lng->txt(
"survey_360_appraisees"));
75 $this->
addColumn($this->lng->txt(
"survey_360_rater_finished"),
"finished");
76 $this->
addColumn($this->lng->txt(
"survey_code_url"));
77 $this->
addColumn($this->lng->txt(
"survey_360_rater_mail_sent"),
"sent");
79 include_once
"Services/User/classes/class.ilUserUtil.php";
80 $this->
setTitle($this->lng->txt(
"survey_360_edit_raters").
" : ".
84 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"Modules/Survey");
86 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
91 if(!$this->raters_mode)
93 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->lng->txt(
'survey_360_appraisee_close_action'));
94 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->lng->txt(
'survey_360_remove_appraisees'));
101 if($a_may_delete_rater)
103 $this->
addMultiCommand(
'confirmDeleteRaters', $this->lng->txt(
'remove'));
121 if(!$this->raters_mode)
130 $this->tpl->setCurrentBlock(
"cb");
131 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
132 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
133 $this->tpl->parseCurrentBlock();
134 $this->tpl->setVariable(
"CLOSED",
"");
137 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
140 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_360_edit_raters"));
141 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
146 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
147 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
148 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ? $lng->txt(
"yes") : $lng->txt(
"no"));
155 $this->tpl->setVariable(
"MAIL_SENT", $sent);
157 if(
$data[
"href"] || $this->fallback_url)
161 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"]);
165 $this->tpl->setVariable(
"DIRECT_HREF", $this->fallback_url);
170 $this->tpl->setVariable(
"NO_HREF",
"");
174 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
175 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
176 $this->tpl->setVariable(
"NAME",
$data[
'name']);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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)
Default behaviour is:
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.
__construct($a_parent_obj, $a_parent_cmd, $a_raters_mode=false, $a_may_delete_rater=false, $a_fallback_url=null)
Constructor.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setFormName($a_formname="")
Set Form name.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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.