ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 
 getLanguage ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getPlaceholders ()
 
 getSpecificPlaceholders ()
 
 resolveSpecificPlaceholder (string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
 
 resolvePlaceholder (string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
 

Data Fields

const ID = 'svy_rater_inv'
 

Protected Attributes

ilLanguage $lng
 
ilObjectDataCache $obj_data_cache
 
- Protected Attributes inherited from ilMailTemplateContext
ilLanguage $language
 
ilMailEnvironmentHelper $envHelper
 
ilMailLanguageHelper $languageHelper
 
ilMailUserHelper $userHelper
 
OrgUnitUserService $orgUnitUserService
 

Additional Inherited Members

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

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 
)

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

References $DIC, ilMailTemplateContext\$envHelper, ilMailTemplateContext\$languageHelper, ilMailTemplateContext\$orgUnitUserService, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().

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  }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getDescription()

ilSurveyMailTemplateRaterInvitationContext::getDescription ( )

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

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

70  : string
71  {
72  $lng = $this->lng;
73 
74  $lng->loadLanguageModule('survey');
75 
76  return $lng->txt('svy_mail_context_rater_invitation_info');
77  }
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...
loadLanguageModule(string $a_module)
Load language module.
+ Here is the call graph for this function:

◆ getId()

ilSurveyMailTemplateRaterInvitationContext::getId ( )

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

56  : string
57  {
58  return self::ID;
59  }

◆ getSpecificPlaceholders()

ilSurveyMailTemplateRaterInvitationContext::getSpecificPlaceholders ( )

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

References $lng, $obj_data_cache, ilLink\_getLink(), ilLanguage\loadLanguageModule(), ilMailTemplateContext\resolveSpecificPlaceholder(), and ilLanguage\txt().

79  : array
80  {
81  $lng = $this->lng;
82 
83  $lng->loadLanguageModule('survey');
84 
85  $placeholders = array();
86 
87  $placeholders['svy_title'] = array(
88  'placeholder' => 'SURVEY_TITLE',
89  'label' => $lng->txt('svy_mail_context_rater_invitation_survey_title')
90  );
91 
92  $placeholders['svy_link'] = array(
93  'placeholder' => 'SURVEY_LINK',
94  'label' => $lng->txt('perma_link')
95  );
96 
97  $placeholders['svy_ext_rater_firstname'] = array(
98  'placeholder' => 'EXTERNAL_RATER_FIRSTNAME',
99  'label' => $lng->txt('svy_ext_rater_firstname')
100  );
101 
102  $placeholders['svy_ext_rater_lastname'] = array(
103  'placeholder' => 'EXTERNAL_RATER_LASTNAME',
104  'label' => $lng->txt('svy_ext_rater_lastname')
105  );
106 
107  return $placeholders;
108  }
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...
loadLanguageModule(string $a_module)
Load language module.
+ Here is the call graph for this function:

◆ getTitle()

ilSurveyMailTemplateRaterInvitationContext::getTitle ( )

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

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

61  : string
62  {
63  $lng = $this->lng;
64 
65  $lng->loadLanguageModule('survey');
66 
67  return $lng->txt('svy_mail_context_rater_invitation_title');
68  }
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...
loadLanguageModule(string $a_module)
Load language module.
+ 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'

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