ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCourseMailTemplateMemberContext.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
'./Services/Mail/classes/class.ilMailTemplateContext.php'
;
5
12
class
ilCourseMailTemplateMemberContext
extends
ilMailTemplateContext
13
{
14
const
ID
=
'crs_context_member_manual'
;
15
19
public
function
getId
()
20
{
21
return
self::ID;
22
}
23
27
public
function
getTitle
()
28
{
29
global
$DIC
;
30
31
$lng
= $DIC[
'lng'
];
32
33
$lng
->loadLanguageModule(
'crs'
);
34
35
return
$lng
->txt(
'crs_mail_context_member_title'
);
36
}
37
41
public
function
getDescription
()
42
{
43
global
$DIC
;
44
45
$lng
= $DIC[
'lng'
];
46
47
$lng
->loadLanguageModule(
'crs'
);
48
49
return
$lng
->txt(
'crs_mail_context_member_info'
);
50
}
51
56
public
function
getSpecificPlaceholders
()
57
{
61
global
$DIC
;
62
63
$lng
= $DIC[
'lng'
];
64
65
$lng
->loadLanguageModule(
'crs'
);
66
67
$placeholders = array();
68
69
$placeholders[
'crs_title'
] = array(
70
'placeholder'
=>
'COURSE_TITLE'
,
71
'label'
=>
$lng
->txt(
'crs_title'
)
72
);
73
74
75
76
77
$placeholders[
'crs_link'
] = array(
78
'placeholder'
=>
'COURSE_LINK'
,
79
'label'
=>
$lng
->txt(
'crs_mail_permanent_link'
)
80
);
81
82
83
84
85
86
return
$placeholders;
87
}
88
92
public
function
resolveSpecificPlaceholder
($placeholder_id, array $context_parameters,
ilObjUser
$recipient = null, $html_markup =
false
)
93
{
97
global
$DIC
;
98
99
$ilObjDataCache = $DIC[
'ilObjDataCache'
];
100
101
if
(
'crs_title'
== $placeholder_id) {
102
return
$ilObjDataCache->lookupTitle($ilObjDataCache->lookupObjId($context_parameters[
'ref_id'
]));
103
} elseif (
'crs_link'
== $placeholder_id) {
104
require_once
'./Services/Link/classes/class.ilLink.php'
;
105
return
ilLink::_getLink
($context_parameters[
'ref_id'
],
'crs'
);
106
}
107
108
return
''
;
109
}
110
}
ilCourseMailTemplateMemberContext
Definition:
class.ilCourseMailTemplateMemberContext.php:12
ilCourseMailTemplateMemberContext\getId
getId()
Definition:
class.ilCourseMailTemplateMemberContext.php:19
$DIC
global $DIC
Definition:
saml.php:7
ilMailTemplateContext\resolveSpecificPlaceholder
resolveSpecificPlaceholder($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false)
ilMailTemplateContext\getSpecificPlaceholders
getSpecificPlaceholders()
Return an array of placeholders.
ilCourseMailTemplateMemberContext\getTitle
getTitle()
Definition:
class.ilCourseMailTemplateMemberContext.php:27
$lng
$lng
Definition:
save_question_post_data.php:23
ilMailTemplateContext
Class ilMailTemplateContext.
Definition:
class.ilMailTemplateContext.php:11
ilCourseMailTemplateMemberContext\getDescription
getDescription()
Definition:
class.ilCourseMailTemplateMemberContext.php:41
php
ilObjUser
Definition:
class.ilObjUser.php:25
ilLink\_getLink
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
Definition:
class.ilLink.php:17
ilCourseMailTemplateMemberContext\ID
const ID
Definition:
class.ilCourseMailTemplateMemberContext.php:14
Modules
Course
classes
class.ilCourseMailTemplateMemberContext.php
Generated on Thu Jan 16 2025 19:02:00 for ILIAS by
1.8.13 (using
Doxyfile
)