3 declare(strict_types=1);
31 public const ID =
'exc_context_grade_rmd';
51 $this->
lng = $DIC->language();
52 if (isset($DIC[
"ilObjDataCache"])) {
53 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
69 return $lng->
txt(
'exc_mail_context_grade_reminder_title');
78 return $lng->
txt(
'exc_mail_context_grade_reminder_info');
86 $placeholders = array();
88 $placeholders[
'ass_title'] = array(
89 'placeholder' =>
'ASSIGNMENT_TITLE',
90 'label' => $lng->
txt(
'exc_mail_context_reminder_assignment_title')
92 $placeholders[
'exc_title'] = array(
93 'placeholder' =>
'EXERCISE_TITLE',
94 'label' => $lng->
txt(
'exc_mail_context_reminder_exercise_title')
97 $placeholders[
'ass_link'] = array(
98 'placeholder' =>
'ASSIGNMENT_LINK',
99 'label' => $lng->
txt(
'perma_link')
102 return $placeholders;
106 string $placeholder_id,
107 array $context_parameters,
109 bool $html_markup =
false 113 if ($placeholder_id ==
'ass_title') {
116 if ($placeholder_id ==
'exc_title') {
117 return $ilObjDataCache->lookupTitle((
int) $context_parameters[
"exc_id"]);
119 if ($placeholder_id ==
'ass_link') {
121 $context_parameters[
"exc_ref"],
124 "_" . $context_parameters[
"ass_id"]
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...
resolveSpecificPlaceholder(string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
getSpecificPlaceholders()
static lookupTitle(int $a_id)
Handles exercise Grade reminder mail placeholders If all contexts are using the same placeholders...
loadLanguageModule(string $a_module)
Load language module.
Class ilMailEnvironmentHelper.
__construct(OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
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...
ilObjectDataCache $obj_data_cache