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(
"lastname"),
'lastname',
'');
62 $this->
addColumn($this->lng->txt(
"firstname"),
'firstname',
'');
63 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
64 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
66 if(!$this->raters_mode)
68 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
69 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
70 $this->
addColumn($this->lng->txt(
"actions"));
72 $this->
setTitle($this->lng->txt(
"survey_360_appraisees"));
76 $this->
addColumn($this->lng->txt(
"survey_360_rater_finished"),
"finished");
77 $this->
addColumn($this->lng->txt(
"survey_code_url"));
78 $this->
addColumn($this->lng->txt(
"survey_360_rater_mail_sent"),
"sent");
80 include_once
"Services/User/classes/class.ilUserUtil.php";
81 $this->
setTitle($this->lng->txt(
"survey_360_edit_raters").
" : ".
85 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"Modules/Survey");
87 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
92 if(!$this->raters_mode)
94 $this->
addCommandButton(
'deleteAllUserData', $this->lng->txt(
'svy_delete_all_user_data'));
95 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->lng->txt(
'survey_360_appraisee_close_action'));
96 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->lng->txt(
'survey_360_remove_appraisees'));
103 if($a_may_delete_rater)
105 $this->
addMultiCommand(
'confirmDeleteRaters', $this->lng->txt(
'remove'));
123 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
124 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
125 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
126 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
127 $this->tpl->setVariable(
"LAST_NAME",
$data[
'lastname']);
128 $this->tpl->setVariable(
"FIRST_NAME",
$data[
'firstname']);
130 if(!$this->raters_mode)
132 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
133 $this->tpl->setVariable(
"CLOSED",
$data[
'closed'] ?
138 $this->tpl->setVariable(
"URL", $lng->txt(
"survey_360_edit_raters"));
139 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
144 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ? $lng->txt(
"yes") : $lng->txt(
"no"));
151 $this->tpl->setVariable(
"MAIL_SENT", $sent);
153 if(
$data[
"href"] || $this->fallback_url)
157 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"]);
161 $this->tpl->setVariable(
"DIRECT_HREF", $this->fallback_url);
166 $this->tpl->setVariable(
"NO_HREF",
"");
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
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.
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.
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.
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.