ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 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 
)

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

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

29  {
30  global $DIC;
31 
33  $orgUnitUserService,
34  $envHelper,
35  $usernameHelper,
36  $languageHelper
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)
+ Here is the call graph for this function:

Member Function Documentation

◆ getDescription()

ilSurveyMailTemplateReminderContext::getDescription ( )
Returns
string

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

References $lng, $obj_data_cache, ilLink\_getLink(), ilMailTemplateContext\getSpecificPlaceholders(), and ilMailTemplateContext\resolveSpecificPlaceholder().

70  : string
71  {
72  $lng = $this->lng;
73 
74  $lng->loadLanguageModule('survey');
75 
76  return $lng->txt('svy_mail_context_reminder_info');
77  }
+ Here is the call graph for this function:

◆ getId()

ilSurveyMailTemplateReminderContext::getId ( )
Returns
string

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

50  : string
51  {
52  return self::ID;
53  }

◆ getTitle()

ilSurveyMailTemplateReminderContext::getTitle ( )
Returns
string

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

References $lng.

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

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

Definition at line 22 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: