ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 
 getLanguage ()
 
 getId ()
 
 getTitle ()
 
 getDescription ()
 
 getPlaceholders ()
 
 getSpecificPlaceholders ()
 
 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)
 

Data Fields

const ID = 'crs_context_member_manual'
 

Protected Attributes

ilLanguage $lng
 
- Protected Attributes inherited from ilMailTemplateContext
ilLanguage $language
 
ilMailEnvironmentHelper $envHelper
 
ilMailLanguageHelper $languageHelper
 
ilMailUserHelper $userHelper
 
OrgUnitUserService $orgUnitUserService
 

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 $isoCode)
 

Detailed Description

Definition at line 25 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 34 of file class.ilCourseMailTemplateMemberContext.php.

References ilMailTemplateContext\$envHelper, ilMailTemplateContext\$languageHelper, ilMailTemplateContext\$orgUnitUserService, and ILIAS\GlobalScreen\Provider\__construct().

39  {
40  parent::__construct($orgUnitUserService, $envHelper, $usernameHelper, $languageHelper);
41  }
OrgUnitUserService $orgUnitUserService
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getCachedPeriodByObjId()

ilCourseMailTemplateMemberContext::getCachedPeriodByObjId ( int  $objId)
private

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

References $DIC, $objId, ilLink\_getLink(), ilDatePresentation\formatDate(), ilObjCourseAccess\lookupPeriodInfo(), ilMailTemplateContext\resolveSpecificPlaceholder(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().

106  : array
107  {
108  if (!array_key_exists($objId, self::$periodInfoByObjIdCache)) {
109  self::$periodInfoByObjIdCache[$objId] = ilObjCourseAccess::lookupPeriodInfo($objId);
110  }
111 
112  return self::$periodInfoByObjIdCache[$objId];
113  }
$objId
Definition: xapitoken.php:57
static lookupPeriodInfo(int $a_obj_id)
+ Here is the call graph for this function:

◆ getDescription()

ilCourseMailTemplateMemberContext::getDescription ( )

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

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

59  : string
60  {
61  global $DIC;
62 
63  $lng = $DIC['lng'];
64 
65  $lng->loadLanguageModule('crs');
66 
67  return $lng->txt('crs_mail_context_member_info');
68  }
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...
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ getId()

ilCourseMailTemplateMemberContext::getId ( )

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

43  : string
44  {
45  return self::ID;
46  }

◆ getTitle()

ilCourseMailTemplateMemberContext::getTitle ( )

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

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

48  : string
49  {
50  global $DIC;
51 
52  $lng = $DIC['lng'];
53 
54  $lng->loadLanguageModule('crs');
55 
56  return $lng->txt('crs_mail_context_member_title');
57  }
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...
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilLanguage ilCourseMailTemplateMemberContext::$lng
protected

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

◆ $periodInfoByObjIdCache

array ilCourseMailTemplateMemberContext::$periodInfoByObjIdCache = []
staticprotected

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

◆ ID

const ilCourseMailTemplateMemberContext::ID = 'crs_context_member_manual'

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