|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilMailTemplateContext. More...
Inheritance diagram for ilMailTemplateContext:
Collaboration diagram for ilMailTemplateContext:Public Member Functions | |
| __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) | |
Protected Member Functions | |
| initLanguage (ilObjUser $user) | |
| initLanguageByIso2Code (string $isoCode) | |
Protected Attributes | |
| $language | |
| $envHelper | |
| $languageHelper | |
| $userHelper | |
| $orgUnitUserService | |
Private Member Functions | |
| getGenericPlaceholders () | |
Class ilMailTemplateContext.
Definition at line 15 of file class.ilMailTemplateContext.php.
| ilMailTemplateContext::__construct | ( | OrgUnitUserService | $orgUnitUserService = null, |
| ilMailEnvironmentHelper | $envHelper = null, |
||
| ilMailUserHelper | $usernameHelper = null, |
||
| ilMailLanguageHelper | $languageHelper = null |
||
| ) |
ilMailTemplateContext constructor.
| OrgUnitUserService | null | $orgUnitUserService | |
| ilMailEnvironmentHelper | null | $envHelper | |
| ilMailUserHelper | null | $usernameHelper | |
| ilMailLanguageHelper | null | $languageHelper |
Reimplemented in ilExcMailTemplateGradeReminderContext, ilExcMailTemplatePeerReminderContext, ilExcMailTemplateSubmitReminderContext, ilStudyProgrammeMailTemplateContext, and ilSurveyMailTemplateReminderContext.
Definition at line 39 of file class.ilMailTemplateContext.php.
References $envHelper, $languageHelper, and $orgUnitUserService.
|
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, ilStudyProgrammeMailTemplateContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
|
private |
Definition at line 95 of file class.ilMailTemplateContext.php.
References getLanguage(), and true.
Referenced by getPlaceholders().
Here is the call graph for this function:
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, ilStudyProgrammeMailTemplateContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
Referenced by ilMailTemplateContextService\createEntry().
Here is the caller graph for this function:| ilMailTemplateContext::getLanguage | ( | ) |
Definition at line 69 of file class.ilMailTemplateContext.php.
References language().
Referenced by ilMailTemplateGenericContext\getDescription(), getGenericPlaceholders(), and ilMailTemplateGenericContext\getTitle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Return an array of placeholders.
Definition at line 138 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, ilStudyProgrammeMailTemplateContext, 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, ilStudyProgrammeMailTemplateContext, ilSurveyMailTemplateReminderContext, and ilMailTemplateGenericContext.
|
protected |
| ilObjUser | $user |
Definition at line 264 of file class.ilMailTemplateContext.php.
References ilObjUser\getLanguage().
Referenced by resolvePlaceholder().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| string | $isoCode |
Definition at line 272 of file class.ilMailTemplateContext.php.
References language().
Here is the call graph for this function:| ilMailTemplateContext::resolvePlaceholder | ( | string | $placeholder_id, |
| array | $context_parameters, | ||
| ilObjUser | $recipient = null, |
||
| bool | $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 173 of file class.ilMailTemplateContext.php.
References initLanguage().
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.
|
protected |
Definition at line 21 of file class.ilMailTemplateContext.php.
Referenced by ilExcMailTemplateGradeReminderContext\__construct(), ilExcMailTemplatePeerReminderContext\__construct(), ilExcMailTemplateSubmitReminderContext\__construct(), ilStudyProgrammeMailTemplateContext\__construct(), ilSurveyMailTemplateReminderContext\__construct(), and __construct().
|
protected |
Definition at line 18 of file class.ilMailTemplateContext.php.
|
protected |
Definition at line 24 of file class.ilMailTemplateContext.php.
Referenced by ilExcMailTemplateGradeReminderContext\__construct(), ilExcMailTemplatePeerReminderContext\__construct(), ilExcMailTemplateSubmitReminderContext\__construct(), ilStudyProgrammeMailTemplateContext\__construct(), ilSurveyMailTemplateReminderContext\__construct(), and __construct().
|
protected |
Definition at line 30 of file class.ilMailTemplateContext.php.
Referenced by ilExcMailTemplateGradeReminderContext\__construct(), ilExcMailTemplatePeerReminderContext\__construct(), ilExcMailTemplateSubmitReminderContext\__construct(), ilStudyProgrammeMailTemplateContext\__construct(), ilSurveyMailTemplateReminderContext\__construct(), and __construct().
|
protected |
Definition at line 27 of file class.ilMailTemplateContext.php.