19 declare(strict_types=0);
    28     public const ID = 
'crs_context_member_manual';
    57         return $lng->
txt(
'crs_mail_context_member_title');
    68         return $lng->
txt(
'crs_mail_context_member_info');
    82         $placeholders = array();
    84         $placeholders[
'course_title'] = array(
    85             'placeholder' => 
'COURSE_TITLE',
    86             'label' => $lng->
txt(
'crs_title')
    89         $placeholders[
'course_period_start'] = array(
    90             'placeholder' => 
'COURSE_PERIOD_START',
    91             'label' => $lng->
txt(
'crs_period_start_mail_placeholder')
    94         $placeholders[
'course_period_end'] = array(
    95             'placeholder' => 
'COURSE_PERIOD_END',
    96             'label' => $lng->
txt(
'crs_period_end_mail_placeholder')
    99         $placeholders[
'course_link'] = array(
   100             'placeholder' => 
'COURSE_LINK',
   101             'label' => $lng->
txt(
'crs_mail_permanent_link')
   104         return $placeholders;
   109         if (!array_key_exists($objId, self::$periodInfoByObjIdCache)) {
   113         return self::$periodInfoByObjIdCache[
$objId];
   120         string $placeholder_id,
   121         array $context_parameters,
   129         $ilObjDataCache = $DIC[
'ilObjDataCache'];
   131         if (
'course_title' == $placeholder_id) {
   132             return $ilObjDataCache->lookupTitle($ilObjDataCache->lookupObjId((
int) $context_parameters[
'ref_id']));
   134             if (
'course_link' == $placeholder_id) {
   135                 return ilLink::_getLink($context_parameters[
'ref_id'], 
'crs');
   136             } elseif (
'course_period_start' == $placeholder_id) {
   137                 $periodInfo = $this->
getCachedPeriodByObjId((
int) $ilObjDataCache->lookupObjId((
int) $context_parameters[
'ref_id']));
   144                     return $formattedDate;
   148             } elseif (
'course_period_end' == $placeholder_id) {
   149                 $periodInfo = $this->
getCachedPeriodByObjId((
int) $ilObjDataCache->lookupObjId((
int) $context_parameters[
'ref_id']));
   156                     return $formattedDate;
 static array static setUseRelativeDates(bool $a_status)
set use relative dates 
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
 
OrgUnitUserService $orgUnitUserService
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
getSpecificPlaceholders()
 
static array $periodInfoByObjIdCache
 
loadLanguageModule(string $a_module)
Load language module. 
 
Class ilMailEnvironmentHelper. 
 
ilMailLanguageHelper $languageHelper
 
static useRelativeDates()
 
getCachedPeriodByObjId(int $objId)
 
resolveSpecificPlaceholder(string $placeholder_id, array $context_parameters, ilObjUser $recipient=null)
 
Class ilMailLanguageHelper. 
 
__construct(\OrgUnit\PublicApi\OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 
static lookupPeriodInfo(int $a_obj_id)
 
__construct(Container $dic, ilPlugin $plugin)
 
ilMailEnvironmentHelper $envHelper