ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 ilMailTemplateContext constructor. More...
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
- Public Member Functions inherited from ilMailTemplateContext
 __construct (OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 ilMailTemplateContext constructor. More...
 
 getLanguage ()
 
 getId ()
 Returns a unique (in the context of mail template contexts) id. More...
 
 getTitle ()
 Returns a translated title (depending on the current language) which is displayed in the user interface. More...
 
 getDescription ()
 Returns a translated description (depending on the current language) which is displayed in the user interface. More...
 
 getPlaceholders ()
 Return an array of placeholders. More...
 
 getSpecificPlaceholders ()
 Return an array of placeholders. More...
 
 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

 $lng
 
 $obj_data_cache
 
- Protected Attributes inherited from ilMailTemplateContext
 $language
 
 $envHelper
 
 $languageHelper
 
 $userHelper
 
 $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 12 of file class.ilSurveyMailTemplateReminderContext.php.

Constructor & Destructor Documentation

◆ __construct()

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

ilMailTemplateContext constructor.

Parameters
OrgUnitUserService | null$orgUnitUserService
ilMailEnvironmentHelper | null$envHelper
ilMailUserHelper | null$usernameHelper
ilMailLanguageHelper | null$languageHelper

Reimplemented from ilMailTemplateContext.

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

29 {
30 global $DIC;
31
35 $usernameHelper,
37 );
38
39 $this->lng = $DIC->language();
40 if (isset($DIC["ilObjDataCache"])) {
41 $this->obj_data_cache = $DIC["ilObjDataCache"];
42 }
43 }
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getDescription()

ilSurveyMailTemplateReminderContext::getDescription ( )
Returns
string

Reimplemented from ilMailTemplateContext.

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

70 : string
71 {
73
74 $lng->loadLanguageModule('survey');
75
76 return $lng->txt('svy_mail_context_reminder_info');
77 }

References $lng.

◆ getId()

ilSurveyMailTemplateReminderContext::getId ( )
Returns
string

Reimplemented from ilMailTemplateContext.

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

References ID.

◆ getTitle()

ilSurveyMailTemplateReminderContext::getTitle ( )
Returns
string

Reimplemented from ilMailTemplateContext.

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

58 : string
59 {
61
62 $lng->loadLanguageModule('survey');
63
64 return $lng->txt('svy_mail_context_reminder_title');
65 }

References $lng.

Field Documentation

◆ $lng

ilSurveyMailTemplateReminderContext::$lng
protected

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

Referenced by getDescription(), and getTitle().

◆ $obj_data_cache

ilSurveyMailTemplateReminderContext::$obj_data_cache
protected

◆ ID

const ilSurveyMailTemplateReminderContext::ID = 'svy_context_rmd'

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