3 declare(strict_types=1);
48 $this->
lng = $DIC->language();
49 if (isset($DIC[
"ilObjDataCache"])) {
50 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
54 public const ID =
'svy_rater_inv';
67 return $lng->
txt(
'svy_mail_context_rater_invitation_title');
76 return $lng->
txt(
'svy_mail_context_rater_invitation_info');
85 $placeholders = array();
87 $placeholders[
'svy_title'] = array(
88 'placeholder' =>
'SURVEY_TITLE',
89 'label' => $lng->
txt(
'svy_mail_context_rater_invitation_survey_title')
92 $placeholders[
'svy_link'] = array(
93 'placeholder' =>
'SURVEY_LINK',
94 'label' => $lng->
txt(
'perma_link')
97 $placeholders[
'svy_ext_rater_firstname'] = array(
98 'placeholder' =>
'EXTERNAL_RATER_FIRSTNAME',
99 'label' => $lng->
txt(
'svy_ext_rater_firstname')
102 $placeholders[
'svy_ext_rater_lastname'] = array(
103 'placeholder' =>
'EXTERNAL_RATER_LASTNAME',
104 'label' => $lng->
txt(
'svy_ext_rater_lastname')
107 return $placeholders;
111 string $placeholder_id,
112 array $context_parameters,
114 bool $html_markup =
false 121 $svy =
new ilObjSurvey((
int) $context_parameters[
'ref_id']);
122 $raters = $svy->getRatersData((
int) $context_parameters[
'appr_id']);
123 $current_rater = null;
124 foreach ($raters as $rater) {
125 if ($rater[
"user_id"] == $context_parameters[
'rater_id']) {
126 $current_rater = $rater;
130 switch ($placeholder_id) {
132 return $ilObjDataCache->lookupTitle($ilObjDataCache->lookupObjId((
int) $context_parameters[
'ref_id']));
135 $svy =
new ilObjSurvey((
int) $context_parameters[
'ref_id']);
136 $raters = $svy->getRatersData((
int) $context_parameters[
'appr_id']);
138 if (isset($current_rater[
"href"]) && $current_rater[
"href"] !==
"") {
139 $href = $current_rater[
"href"];
143 case 'svy_ext_rater_firstname':
144 return $current_rater[
"firstname"] ??
"";
146 case 'svy_ext_rater_lastname':
147 return $current_rater[
"lastname"] ??
"";
OrgUnitUserService $orgUnitUserService
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...
__construct(OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
resolveSpecificPlaceholder(string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
loadLanguageModule(string $a_module)
Load language module.
ilObjectDataCache $obj_data_cache
Class ilMailEnvironmentHelper.
ilMailLanguageHelper $languageHelper
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilMailLanguageHelper.
Class ilMailTemplateContext.
static _getLink(?int $a_ref_id, string $a_type='', array $a_params=array(), string $append="")
__construct(Container $dic, ilPlugin $plugin)
ilMailEnvironmentHelper $envHelper
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getSpecificPlaceholders()