ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilCourseMailTemplateMemberContext Class Reference
+ Inheritance diagram for ilCourseMailTemplateMemberContext:
+ Collaboration diagram for ilCourseMailTemplateMemberContext:

Public Member Functions

 __construct (?\OrgUnit\PublicApi\OrgUnitUserService $orgUnitUserService=null, ?ilMailEnvironmentHelper $envHelper=null, ?ilMailUserHelper $usernameHelper=null, ?ilMailLanguageHelper $languageHelper=null)
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
- Public Member Functions inherited from ilMailTemplateContext
 __construct (?OrgUnitUserService $org_unit_user_service=null, ?ilMailEnvironmentHelper $environment_helper=null, ?ilMailUserHelper $user_helper=null, ?ilMailLanguageHelper $language_helper=null)
 
 getLanguage ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getNestedPlaceholders ()
 
 getPlaceholders ()
 
 getSpecificPlaceholders ()
 
 resolveSpecificPlaceholder (string $placeholder_id, array $context_parameters, ?ilObjUser $recipient=null)
 
 resolvePlaceholder (string $placeholder_id, array $context_parameters, ?ilObjUser $recipient=null)
 

Data Fields

const ID = 'crs_context_member_manual'
 

Protected Attributes

ilLanguage $lng
 
- Protected Attributes inherited from ilMailTemplateContext
ilLanguage $language
 
ilMailEnvironmentHelper $env_helper
 
ilMailLanguageHelper $language_helper
 
ilMailUserHelper $user_helper
 
OrgUnitUserService $org_unit_user_service
 

Static Protected Attributes

static array $periodInfoByObjIdCache = []
 

Private Member Functions

 getCachedPeriodByObjId (int $objId)
 

Additional Inherited Members

- Protected Member Functions inherited from ilMailTemplateContext
 initLanguage (ilObjUser $user)
 
 initLanguageByIso2Code (string $iso_code)
 

Detailed Description

Definition at line 26 of file class.ilCourseMailTemplateMemberContext.php.

Constructor & Destructor Documentation

◆ __construct()

ilCourseMailTemplateMemberContext::__construct ( ?\OrgUnit\PublicApi\OrgUnitUserService  $orgUnitUserService = null,
?ilMailEnvironmentHelper  $envHelper = null,
?ilMailUserHelper  $usernameHelper = null,
?ilMailLanguageHelper  $languageHelper = null 
)

Definition at line 35 of file class.ilCourseMailTemplateMemberContext.php.

40 {
41 parent::__construct($orgUnitUserService, $envHelper, $usernameHelper, $languageHelper);
42 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getCachedPeriodByObjId()

ilCourseMailTemplateMemberContext::getCachedPeriodByObjId ( int  $objId)
private

Definition at line 107 of file class.ilCourseMailTemplateMemberContext.php.

107 : array
108 {
109 if (!array_key_exists($objId, self::$periodInfoByObjIdCache)) {
110 self::$periodInfoByObjIdCache[$objId] = ilObjCourseAccess::lookupPeriodInfo($objId);
111 }
112
113 return self::$periodInfoByObjIdCache[$objId];
114 }
static lookupPeriodInfo(int $a_obj_id)
$objId
Definition: xapitoken.php:57

References $objId, and ilObjCourseAccess\lookupPeriodInfo().

+ Here is the call graph for this function:

◆ getDescription()

ilCourseMailTemplateMemberContext::getDescription ( )

Reimplemented from ilMailTemplateContext.

Definition at line 60 of file class.ilCourseMailTemplateMemberContext.php.

60 : string
61 {
62 global $DIC;
63
64 $lng = $DIC['lng'];
65
67
68 return $lng->txt('crs_mail_context_member_info');
69 }
loadLanguageModule(string $a_module)
Load language module.
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...
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

◆ getId()

ilCourseMailTemplateMemberContext::getId ( )

Reimplemented from ilMailTemplateContext.

Definition at line 44 of file class.ilCourseMailTemplateMemberContext.php.

References ID.

◆ getTitle()

ilCourseMailTemplateMemberContext::getTitle ( )

Reimplemented from ilMailTemplateContext.

Definition at line 49 of file class.ilCourseMailTemplateMemberContext.php.

49 : string
50 {
51 global $DIC;
52
53 $lng = $DIC['lng'];
54
56
57 return $lng->txt('crs_mail_context_member_title');
58 }

References $DIC, $lng, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilCourseMailTemplateMemberContext::$lng
protected

Definition at line 33 of file class.ilCourseMailTemplateMemberContext.php.

Referenced by getDescription(), and getTitle().

◆ $periodInfoByObjIdCache

array ilCourseMailTemplateMemberContext::$periodInfoByObjIdCache = []
staticprotected

Definition at line 31 of file class.ilCourseMailTemplateMemberContext.php.

◆ ID

const ilCourseMailTemplateMemberContext::ID = 'crs_context_member_manual'

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