ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSurveyMailTemplateReminderContext Class Reference

Handles survey reminder mail placeholders. More...

+ Inheritance diagram for ilSurveyMailTemplateReminderContext:
+ Collaboration diagram for ilSurveyMailTemplateReminderContext:

Public Member Functions

 __construct (OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
- 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_context_rmd'
 

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

Handles survey reminder mail placeholders.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 33 of file class.ilSurveyMailTemplateReminderContext.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()

ilSurveyMailTemplateReminderContext::getDescription ( )

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

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

70  : string
71  {
72  $lng = $this->lng;
73 
74  $lng->loadLanguageModule('survey');
75 
76  return $lng->txt('svy_mail_context_reminder_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()

ilSurveyMailTemplateReminderContext::getId ( )

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

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

◆ getTitle()

ilSurveyMailTemplateReminderContext::getTitle ( )

Definition at line 61 of file class.ilSurveyMailTemplateReminderContext.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_reminder_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 ilSurveyMailTemplateReminderContext::$lng
protected

Definition at line 30 of file class.ilSurveyMailTemplateReminderContext.php.

Referenced by getDescription(), and getTitle().

◆ $obj_data_cache

ilObjectDataCache ilSurveyMailTemplateReminderContext::$obj_data_cache
protected

Definition at line 31 of file class.ilSurveyMailTemplateReminderContext.php.

Referenced by getDescription().

◆ ID

const ilSurveyMailTemplateReminderContext::ID = 'svy_context_rmd'

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