31 bool $a_raters_mode =
false,
32 bool $a_may_delete_rater =
false,
33 ?
string $a_fallback_url =
null 39 $lng = $DIC->language();
40 $ilCtrl = $DIC->ctrl();
42 $this->raters_mode = $a_raters_mode;
43 $this->fallback_url = trim($a_fallback_url ??
"");
46 $this->
ctrl = $ilCtrl;
55 $this->edit_request = $DIC->survey()
61 if (!$this->raters_mode) {
62 $this->
addColumn($this->
lng->txt(
"survey_360_raters_finished"),
"finished");
63 $this->
addColumn($this->
lng->txt(
"survey_360_appraisee_close_table"),
"closed");
66 $this->
setTitle($this->
lng->txt(
"survey_360_appraisees"));
68 $this->
addColumn($this->
lng->txt(
"survey_360_rater_finished"),
"finished");
70 $this->
addColumn($this->
lng->txt(
"survey_360_rater_mail_sent"),
"sent");
73 $this->
lng->txt(
"survey_360_edit_raters") .
" : " .
78 $this->
setRowTemplate(
"tpl.il_svy_svy_appraisees_row.html",
"components/ILIAS/Survey");
85 if (!$this->raters_mode) {
86 $this->
addMultiCommand(
'confirmAdminAppraiseesClose', $this->
lng->txt(
'survey_360_appraisee_close_action'));
87 $this->
addMultiCommand(
'confirmDeleteAppraisees', $this->
lng->txt(
'survey_360_remove_appraisees'));
92 if ($a_may_delete_rater) {
100 protected function fillRow(array $a_set): void
104 if (!$this->raters_mode) {
105 if ($a_set[
'closed']) {
108 $this->tpl->setCurrentBlock(
"cb");
109 $this->tpl->setVariable(
'MODE',
"appr");
110 $this->tpl->setVariable(
'ID', $a_set[
'user_id']);
111 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
"CLOSED",
"");
115 $this->tpl->setVariable(
"FINISHED", $a_set[
'finished']);
118 $this->tpl->setVariable(
"URL",
$lng->
txt(
"survey_360_edit_raters"));
119 $this->tpl->setVariable(
"HREF", $this->
ctrl->getLinkTarget($this->getParentObject(),
"editRaters"));
122 $this->tpl->setVariable(
'MODE',
"rtr");
123 $this->tpl->setVariable(
'ID', $a_set[
'user_id']);
124 $this->tpl->setVariable(
"FINISHED", $a_set[
'finished'] ?
$lng->
txt(
"yes") :
$lng->
txt(
"no"));
127 if ($a_set[
"sent"]) {
130 $this->tpl->setVariable(
"MAIL_SENT", $sent);
132 if (($a_set[
"href"] ??
false) || $this->fallback_url) {
133 if ($a_set[
"href"] ??
false) {
134 $this->tpl->setVariable(
"DIRECT_HREF", $a_set[
"href"]);
136 $this->tpl->setVariable(
"DIRECT_HREF", $this->fallback_url);
139 $this->tpl->setVariable(
"NO_HREF",
"");
143 $this->tpl->setVariable(
"LOGIN", $a_set[
'login']);
144 $this->tpl->setVariable(
"EMAIL", $a_set[
'email']);
145 $this->tpl->setVariable(
"NAME", $a_set[
'name']);
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormName(string $a_name="")
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
__construct(object $a_parent_obj, string $a_parent_cmd, bool $a_raters_mode=false, bool $a_may_delete_rater=false, ?string $a_fallback_url=null)
setDefaultOrderDirection(string $a_defaultorderdirection)
ILIAS Survey Editing EditingGUIRequest $edit_request
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
addMultiCommand(string $a_cmd, string $a_text)
setPrefix(string $a_prefix)