24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
45 public function __construct($a_parent_obj, $a_parent_cmd, $a_raters_mode =
false, $a_may_delete_rater =
false)
47 parent::__construct($a_parent_obj, $a_parent_cmd);
51 $this->raters_mode = (bool)$a_raters_mode;
59 $this->
addColumn($this->lng->txt(
"lastname"),
'lastname',
'');
60 $this->
addColumn($this->lng->txt(
"firstname"),
'firstname',
'');
61 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
62 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
64 if(!$this->raters_mode)
66 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
67 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
68 $this->
addColumn($this->lng->txt(
"actions"));
70 $this->
setTitle($this->lng->txt(
"survey_360_appraisees"));
74 $this->
addColumn($this->lng->txt(
"survey_360_rater_finished"),
"finished");
75 $this->
addColumn($this->lng->txt(
"survey_code_url"));
76 $this->
addColumn($this->lng->txt(
"survey_360_rater_mail_sent"),
"sent");
78 include_once
"Services/User/classes/class.ilUserUtil.php";
79 $this->
setTitle($this->lng->txt(
"survey_360_edit_raters").
" : ".
83 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"Modules/Survey");
85 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
90 if(!$this->raters_mode)
92 $this->
addCommandButton(
'deleteAllUserData', $this->lng->txt(
'svy_delete_all_user_data'));
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 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
122 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
123 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
124 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
125 $this->tpl->setVariable(
"LAST_NAME",
$data[
'lastname']);
126 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'firstname']);
128 if(!$this->raters_mode)
130 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
131 $this->tpl->setVariable(
"CLOSED",
$data[
'closed'] ?
136 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_360_edit_raters"));
137 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
142 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ? $lng->txt(
"yes") : $lng->txt(
"no"));
149 $this->tpl->setVariable(
"MAIL_SENT", $sent);
153 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"].
"");
157 $this->tpl->setVariable(
"NO_HREF",
"");
setFormName($a_formname)
Set Form name.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
getParentObject()
Get parent object.
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:
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd, $a_raters_mode=false, $a_may_delete_rater=false)
Constructor.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="")
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action)
Set Form action parameter.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.