ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilMailTemplateContext. More...
Public Member Functions | |
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 | |
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.
Referenced by ilMailTemplateGenericContext\getId(), and setLanguage().
|
abstract |
Returns a unique (in the context of mail template contexts) id.
Referenced by ilMailTemplateService\createEntry(), and setLanguage().
|
final |
Return an array of placeholders.
Definition at line 96 of file class.ilMailTemplateContext.php.
References array, getSpecificPlaceholders(), and resolveSpecificPlaceholder().
|
abstract |
Return an array of placeholders.
Referenced by ilCourseMailTemplateMemberContext\getDescription(), ilCourseMailTemplateTutorContext\getDescription(), ilSurveyMailTemplateReminderContext\getDescription(), ilScormMailTemplateLPContext\getDescription(), and getPlaceholders().
|
abstract |
Returns a translated title (depending on the current language) which is displayed in the user interface.
Referenced by ilMailTemplateGenericContext\getId(), and setLanguage().
|
protected |
ilObjUser | $user |
Definition at line 189 of file class.ilMailTemplateContext.php.
References ilObjUser\getLanguage(), and initLanguageByIso2Code().
Referenced by resolvePlaceholder().
|
protected |
Init language by ISO2 code.
string | $a_code |
Definition at line 198 of file class.ilMailTemplateContext.php.
References ilLanguageFactory\_getLanguage().
Referenced by initLanguage().
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 126 of file class.ilMailTemplateContext.php.
References ilDatePresentation\getLanguage(), initLanguage(), resolveSpecificPlaceholder(), and ilDatePresentation\setLanguage().
|
abstract |
string | $placeholder_id | |
array | $context_parameters | |
ilObjUser | null | $recipient | |
bool | $html_markup |
Referenced by ilCourseMailTemplateMemberContext\getDescription(), ilCourseMailTemplateTutorContext\getDescription(), ilSurveyMailTemplateReminderContext\getDescription(), ilScormMailTemplateLPContext\getDescription(), getPlaceholders(), and resolvePlaceholder().
ilMailTemplateContext::setLanguage | ( | $language | ) |
ilLanguage | null | $language |
Definition at line 34 of file class.ilMailTemplateContext.php.
References $language, $lng, array, getDescription(), getId(), and getTitle().
|
protected |
Definition at line 16 of file class.ilMailTemplateContext.php.
Referenced by setLanguage().