ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilExcMailTemplateSubmitReminderContext Class Reference
+ Inheritance diagram for ilExcMailTemplateSubmitReminderContext:
+ Collaboration diagram for ilExcMailTemplateSubmitReminderContext:

Public Member Functions

 __construct (OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 ilMailTemplateContext constructor. More...
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getSpecificPlaceholders ()
 Return an array of placeholders. More...
 
 resolveSpecificPlaceholder (string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
 {
Parameters
string$placeholder_id
array$context_parameters
ilObjUser | null$recipient
bool$html_markup
Returns
string
} More...
 
- 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 = 'exc_context_submit_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

Constructor & Destructor Documentation

◆ __construct()

ilExcMailTemplateSubmitReminderContext::__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 25 of file class.ilExcMailTemplateSubmitReminderContext.php.

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

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()

ilExcMailTemplateSubmitReminderContext::getDescription ( )
Returns
string

Reimplemented from ilMailTemplateContext.

Definition at line 71 of file class.ilExcMailTemplateSubmitReminderContext.php.

71 : string
72 {
74
75 $lng->loadLanguageModule('exc');
76
77 return $lng->txt('exc_mail_context_submit_reminder_info');
78 }

References $lng.

◆ getId()

ilExcMailTemplateSubmitReminderContext::getId ( )
Returns
string

Reimplemented from ilMailTemplateContext.

Definition at line 51 of file class.ilExcMailTemplateSubmitReminderContext.php.

References ID.

◆ getSpecificPlaceholders()

ilExcMailTemplateSubmitReminderContext::getSpecificPlaceholders ( )

Return an array of placeholders.

Returns
array

Reimplemented from ilMailTemplateContext.

Definition at line 84 of file class.ilExcMailTemplateSubmitReminderContext.php.

84 : array
85 {
87 $lng->loadLanguageModule('exc');
88
89 $placeholders = array();
90
91 $placeholders['ass_title'] = array(
92 'placeholder' => 'ASSIGNMENT_TITLE',
93 'label' => $lng->txt('exc_mail_context_reminder_assignment_title')
94 );
95 $placeholders['exc_title'] = array(
96 'placeholder' => 'EXERCISE_TITLE',
97 'label' => $lng->txt('exc_mail_context_reminder_exercise_title')
98 );
99
100 $placeholders['ass_link'] = array(
101 'placeholder' => 'ASSIGNMENT_LINK',
102 'label' => $lng->txt('perma_link')
103 );
104
105 return $placeholders;
106 }

References $lng.

◆ getTitle()

ilExcMailTemplateSubmitReminderContext::getTitle ( )
Returns
string

Reimplemented from ilMailTemplateContext.

Definition at line 59 of file class.ilExcMailTemplateSubmitReminderContext.php.

59 : string
60 {
62
63 $lng->loadLanguageModule('exc');
64
65 return $lng->txt('exc_mail_context_submit_reminder_title');
66 }

References $lng.

◆ resolveSpecificPlaceholder()

ilExcMailTemplateSubmitReminderContext::resolveSpecificPlaceholder ( string  $placeholder_id,
array  $context_parameters,
ilObjUser  $recipient = null,
bool  $html_markup = false 
)

{

Parameters
string$placeholder_id
array$context_parameters
ilObjUser | null$recipient
bool$html_markup
Returns
string
}

Reimplemented from ilMailTemplateContext.

Definition at line 111 of file class.ilExcMailTemplateSubmitReminderContext.php.

116 : string {
117 $ilObjDataCache = $this->obj_data_cache;
118
119 if ($placeholder_id == 'ass_title') {
120 return ilExAssignment::lookupTitle($context_parameters["ass_id"]);
121 } else {
122 if ($placeholder_id == 'exc_title') {
123 return $ilObjDataCache->lookupTitle($context_parameters["exc_id"]);
124 } else {
125 if ($placeholder_id == 'ass_link') {
126 return ilLink::_getLink(
127 $context_parameters["exc_ref"],
128 "exc",
129 array(),
130 "_" . $context_parameters["ass_id"]
131 );
132 }
133 }
134 }
135
136 return '';
137 }
static lookupTitle($a_id)
Lookup title.

References ilExAssignment\lookupTitle().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilExcMailTemplateSubmitReminderContext::$lng
protected

◆ $obj_data_cache

ilExcMailTemplateSubmitReminderContext::$obj_data_cache
protected

◆ ID

const ilExcMailTemplateSubmitReminderContext::ID = 'exc_context_submit_rmd'

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