ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSurveyMailTemplateRaterInvitationContext Class Reference

Invitation for raters. More...

+ Inheritance diagram for ilSurveyMailTemplateRaterInvitationContext:
+ Collaboration diagram for ilSurveyMailTemplateRaterInvitationContext:

Public Member Functions

 __construct (?OrgUnitUserService $orgUnitUserService=null, ?ilMailEnvironmentHelper $envHelper=null, ?ilMailUserHelper $usernameHelper=null, ?ilMailLanguageHelper $languageHelper=null)
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getSpecificPlaceholders ()
 
- Public Member Functions inherited from ilMailTemplateContext
 __construct (?OrgUnitUserService $org_unit_user_service=null, ?ilMailEnvironmentHelper $environment_helper=null, ?ilMailUserHelper $user_helper=null, ?ilMailLanguageHelper $language_helper=null)
 
 getLanguage ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getNestedPlaceholders ()
 
 getPlaceholders ()
 
 getSpecificPlaceholders ()
 
 resolveSpecificPlaceholder (string $placeholder_id, array $context_parameters, ?ilObjUser $recipient=null)
 
 resolvePlaceholder (string $placeholder_id, array $context_parameters, ?ilObjUser $recipient=null)
 

Data Fields

const ID = 'svy_rater_inv'
 

Protected Attributes

ilLanguage $lng
 
ilObjectDataCache $obj_data_cache
 
- Protected Attributes inherited from ilMailTemplateContext
ilLanguage $language
 
ilMailEnvironmentHelper $env_helper
 
ilMailLanguageHelper $language_helper
 
ilMailUserHelper $user_helper
 
OrgUnitUserService $org_unit_user_service
 

Additional Inherited Members

- Protected Member Functions inherited from ilMailTemplateContext
 initLanguage (ilObjUser $user)
 
 initLanguageByIso2Code (string $iso_code)
 

Detailed Description

Invitation for raters.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 28 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

Constructor & Destructor Documentation

◆ __construct()

ilSurveyMailTemplateRaterInvitationContext::__construct ( ?OrgUnitUserService  $orgUnitUserService = null,
?ilMailEnvironmentHelper  $envHelper = null,
?ilMailUserHelper  $usernameHelper = null,
?ilMailLanguageHelper  $languageHelper = null 
)

Reimplemented from ilMailTemplateContext.

Definition at line 33 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

38 {
39 global $DIC;
40
42 $orgUnitUserService,
43 $envHelper,
44 $usernameHelper,
45 $languageHelper
46 );
47
48 $this->lng = $DIC->language();
49 if (isset($DIC["ilObjDataCache"])) {
50 $this->obj_data_cache = $DIC["ilObjDataCache"];
51 }
52 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getDescription()

ilSurveyMailTemplateRaterInvitationContext::getDescription ( )

Reimplemented from ilMailTemplateContext.

Definition at line 70 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

70 : string
71 {
73
74 $lng->loadLanguageModule('survey');
75
76 return $lng->txt('svy_mail_context_rater_invitation_info');
77 }
loadLanguageModule(string $a_module)
Load language module.
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...

References $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getId()

ilSurveyMailTemplateRaterInvitationContext::getId ( )

◆ getSpecificPlaceholders()

ilSurveyMailTemplateRaterInvitationContext::getSpecificPlaceholders ( )
Returns
array<string, array{placeholder: string, crs_period_end_mail_placeholder: string}>

Reimplemented from ilMailTemplateContext.

Definition at line 79 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

79 : array
80 {
82
83 $lng->loadLanguageModule('survey');
84
85 $placeholders = array();
86
87 $placeholders['survey_title'] = array(
88 'placeholder' => 'SURVEY_TITLE',
89 'label' => $lng->txt('svy_mail_context_rater_invitation_survey_title')
90 );
91
92 $placeholders['survey_link'] = array(
93 'placeholder' => 'SURVEY_LINK',
94 'label' => $lng->txt('perma_link')
95 );
96
97 $placeholders['external_rater_firstname'] = array(
98 'placeholder' => 'EXTERNAL_RATER_FIRSTNAME',
99 'label' => $lng->txt('svy_ext_rater_firstname')
100 );
101
102 $placeholders['external_rater_lastname'] = array(
103 'placeholder' => 'EXTERNAL_RATER_LASTNAME',
104 'label' => $lng->txt('svy_ext_rater_lastname')
105 );
106
107 return $placeholders;
108 }

References $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getTitle()

ilSurveyMailTemplateRaterInvitationContext::getTitle ( )

Reimplemented from ilMailTemplateContext.

Definition at line 61 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

61 : string
62 {
64
65 $lng->loadLanguageModule('survey');
66
67 return $lng->txt('svy_mail_context_rater_invitation_title');
68 }

References $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilSurveyMailTemplateRaterInvitationContext::$lng
protected

◆ $obj_data_cache

ilObjectDataCache ilSurveyMailTemplateRaterInvitationContext::$obj_data_cache
protected

◆ ID

const ilSurveyMailTemplateRaterInvitationContext::ID = 'svy_rater_inv'

Definition at line 54 of file class.ilSurveyMailTemplateRaterInvitationContext.php.

Referenced by getId().


The documentation for this class was generated from the following file: