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)
50 parent::__construct($a_parent_obj, $a_parent_cmd);
52 $lng = $DIC->language();
55 $this->raters_mode = (bool) $a_raters_mode;
56 $this->fallback_url = trim($a_fallback_url);
64 $this->
addColumn($this->lng->txt(
"name"),
'name',
'');
65 $this->
addColumn($this->lng->txt(
"login"),
'login',
'');
66 $this->
addColumn($this->lng->txt(
"email"),
'email',
'');
68 if (!$this->raters_mode) {
69 $this->
addColumn($this->lng->txt(
"survey_360_raters_finished"),
"finished");
70 $this->
addColumn($this->lng->txt(
"survey_360_appraisee_close_table"),
"closed");
71 $this->
addColumn($this->lng->txt(
"actions"));
73 $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) {
92 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->lng->txt(
'survey_360_appraisee_close_action'));
93 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->lng->txt(
'survey_360_remove_appraisees'));
98 if ($a_may_delete_rater) {
99 $this->
addMultiCommand(
'confirmDeleteRaters', $this->lng->txt(
'remove'));
117 if (!$this->raters_mode) {
118 if (
$data[
'closed']) {
121 $this->tpl->setCurrentBlock(
"cb");
122 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
123 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
124 $this->tpl->parseCurrentBlock();
125 $this->tpl->setVariable(
"CLOSED",
"");
128 $this->tpl->setVariable(
"FINISHED",
$data[
'finished']);
131 $this->tpl->setVariable(
"URL",
$lng->txt(
"survey_360_edit_raters"));
132 $this->tpl->setVariable(
"HREF", $this->ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
135 $this->tpl->setVariable(
'MODE', $this->raters_mode ?
"rtr" :
"appr");
136 $this->tpl->setVariable(
'ID',
$data[
'user_id']);
137 $this->tpl->setVariable(
"FINISHED",
$data[
'finished'] ?
$lng->txt(
"yes") :
$lng->txt(
"no"));
143 $this->tpl->setVariable(
"MAIL_SENT", $sent);
145 if (
$data[
"href"] || $this->fallback_url) {
147 $this->tpl->setVariable(
"DIRECT_HREF",
$data[
"href"]);
149 $this->tpl->setVariable(
"DIRECT_HREF", $this->fallback_url);
152 $this->tpl->setVariable(
"NO_HREF",
"");
156 $this->tpl->setVariable(
"LOGIN",
$data[
'login']);
157 $this->tpl->setVariable(
"EMAIL",
$data[
'email']);
158 $this->tpl->setVariable(
"NAME",
$data[
'name']);
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
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.
addMultiCommand($a_cmd, $a_text)
Add Command button.
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.
__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.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.