|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilMailTemplateContext. More...
Inheritance diagram for ilMailTemplateContext:
Collaboration diagram for ilMailTemplateContext:Public Member Functions | |
| getLanguage () | |
| setLanguage ($language) | |
| 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 ($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false) | |
| resolvePlaceholder ($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false) | |
Protected Member Functions | |
| initLanguage (ilObjUser $user) | |
| initLanguageByIso2Code ($a_code) | |
| Init language by ISO2 code. More... | |
Protected Attributes | |
| $language | |
Static Private Member Functions | |
| static | getGenericPlaceholders () |
Class ilMailTemplateContext.
Definition at line 11 of file class.ilMailTemplateContext.php.
|
abstract |
Returns a translated description (depending on the current language) which is displayed in the user interface.
Reimplemented in ilCourseMailTemplateMemberContext, ilCourseMailTemplateTutorContext, ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, ilScormMailTemplateLPContext, ilSessionMailTemplateParticipantContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
|
staticfinalprivate |
Definition at line 57 of file class.ilMailTemplateContext.php.
References $DIC.
Referenced by getPlaceholders().
Here is the caller graph for this function:
|
abstract |
Returns a unique (in the context of mail template contexts) id.
Reimplemented in ilCourseMailTemplateMemberContext, ilCourseMailTemplateTutorContext, ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, ilScormMailTemplateLPContext, ilSessionMailTemplateParticipantContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
Referenced by ilMailTemplateContextService\createEntry().
Here is the caller graph for this function:| ilMailTemplateContext::getLanguage | ( | ) |
Definition at line 21 of file class.ilMailTemplateContext.php.
References $DIC.
Referenced by resolvePlaceholder().
Here is the caller graph for this function:
|
final |
Return an array of placeholders.
Definition at line 98 of file class.ilMailTemplateContext.php.
References getGenericPlaceholders(), and getSpecificPlaceholders().
Here is the call graph for this function:
|
abstract |
Return an array of placeholders.
Reimplemented in ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, and ilMailTemplateGenericContext.
Referenced by getPlaceholders().
Here is the caller graph for this function:
|
abstract |
Returns a translated title (depending on the current language) which is displayed in the user interface.
Reimplemented in ilCourseMailTemplateMemberContext, ilCourseMailTemplateTutorContext, ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, ilScormMailTemplateLPContext, ilSessionMailTemplateParticipantContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
|
protected |
| ilObjUser | $user |
Definition at line 196 of file class.ilMailTemplateContext.php.
References ilObjUser\getLanguage(), and initLanguageByIso2Code().
Referenced by resolvePlaceholder().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init language by ISO2 code.
| string | $a_code |
Definition at line 205 of file class.ilMailTemplateContext.php.
References ilLanguageFactory\_getLanguage().
Referenced by initLanguage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailTemplateContext::resolvePlaceholder | ( | $placeholder_id, | |
| array | $context_parameters, | ||
| ilObjUser | $recipient = null, |
||
$html_markup = false |
|||
| ) |
| string | $placeholder_id | The unique (in the context of your class) placeholder id |
| array | $context_parameters | The context parameters given by the mail system (array of key/value pairs) |
| ilObjUser | null | $recipient | The recipient for this mail |
| bool | $html_markup | A flag whether or not the return value may contain HTML markup |
Definition at line 128 of file class.ilMailTemplateContext.php.
References ilDatePresentation\getLanguage(), getLanguage(), initLanguage(), resolveSpecificPlaceholder(), and ilDatePresentation\setLanguage().
Here is the call graph for this function:
|
abstract |
| string | $placeholder_id | |
| array | $context_parameters | |
| ilObjUser | null | $recipient | |
| bool | $html_markup |
Reimplemented in ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, ilSessionMailTemplateParticipantContext, and ilMailTemplateGenericContext.
Referenced by resolvePlaceholder().
Here is the caller graph for this function:| ilMailTemplateContext::setLanguage | ( | $language | ) |
| ilLanguage | null | $language |
Definition at line 31 of file class.ilMailTemplateContext.php.
References $language.
|
protected |
Definition at line 16 of file class.ilMailTemplateContext.php.
Referenced by setLanguage().