|
| __construct (?OrgUnitUserService $orgUnitUserService=null, ?ilMailEnvironmentHelper $envHelper=null, ?ilMailUserHelper $usernameHelper=null, ?ilMailLanguageHelper $languageHelper=null) |
|
| getId () |
|
| getTitle () |
|
| getDescription () |
|
| getSpecificPlaceholders () |
| Return an array of placeholders. More...
|
|
| __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) |
|
|
const | ID = 'prg_context_manual' |
|
◆ __construct()
◆ date2String()
ilStudyProgrammeMailTemplateContext::date2String |
( |
?DateTimeImmutable |
$date_time = null , |
|
|
?ilObjUser |
$user = null |
|
) |
| |
|
protected |
◆ getDescription()
ilStudyProgrammeMailTemplateContext::getDescription |
( |
| ) |
|
◆ getId()
ilStudyProgrammeMailTemplateContext::getId |
( |
| ) |
|
◆ getLatestAssignment()
ilStudyProgrammeMailTemplateContext::getLatestAssignment |
( |
array |
$assignments | ) |
|
|
protected |
◆ getLatestSuccessfulAssignment()
ilStudyProgrammeMailTemplateContext::getLatestSuccessfulAssignment |
( |
array |
$assignments | ) |
|
|
protected |
◆ getSpecificPlaceholders()
ilStudyProgrammeMailTemplateContext::getSpecificPlaceholders |
( |
| ) |
|
Return an array of placeholders.
Definition at line 99 of file class.ilStudyProgrammeMailTemplateContext.php.
References $id, $ref_id, ilObject\_exists(), ilObject\_lookupDeletedDate(), ilObjUser\_lookupLogin(), ilContainerReference\_lookupTargetRefId(), ilContainerReference\_lookupTitle(), date2String(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), getLatestAssignment(), getLatestSuccessfulAssignment(), ILIAS\Repository\lng(), ilObjUser\lookupOrgUnitsRepresentation(), null, ilMailTemplateContext\resolveSpecificPlaceholder(), and statusToRepr().
102 foreach (self::PLACEHOLDER_TRANSLATIONS as
$id => $label) {
103 $placeholders[
$id] = [
104 'placeholder' =>
$id,
105 'label' => $this->
lng->txt($label)
108 return $placeholders;
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ getTitle()
ilStudyProgrammeMailTemplateContext::getTitle |
( |
| ) |
|
◆ statusToRepr()
ilStudyProgrammeMailTemplateContext::statusToRepr |
( |
int |
$status, |
|
|
string |
$lang |
|
) |
| |
|
protected |
Definition at line 252 of file class.ilStudyProgrammeMailTemplateContext.php.
References ILIAS\Repository\lng(), ilPRGProgress\STATUS_ACCREDITED, ilPRGProgress\STATUS_COMPLETED, ilPRGProgress\STATUS_FAILED, ilPRGProgress\STATUS_IN_PROGRESS, and ilPRGProgress\STATUS_NOT_RELEVANT.
Referenced by getSpecificPlaceholders().
255 return $this->
lng->txtlng(
'prg',
'prg_status_in_progress',
$lang);
258 return $this->
lng->txtlng(
'prg',
'prg_status_completed',
$lang);
261 return $this->
lng->txtlng(
'prg',
'prg_status_accredited',
$lang);
264 return $this->
lng->txtlng(
'prg',
'prg_status_not_relevant',
$lang);
267 return $this->
lng->txtlng(
'prg',
'prg_status_failed',
$lang);
270 throw new ilException(
"Unknown status: '$status'");
const STATUS_NOT_RELEVANT
◆ $lng
ilLanguage ilStudyProgrammeMailTemplateContext::$lng |
|
protected |
◆ COMPLETED_BY
const ilStudyProgrammeMailTemplateContext::COMPLETED_BY = 'STUDY_PROGRAMME_COMPLETED_BY' |
|
private |
◆ COMPLETION_DATE
const ilStudyProgrammeMailTemplateContext::COMPLETION_DATE = 'STUDY_PROGRAMME_COMPLETION_DATE' |
|
private |
◆ DATE_FORMAT
const ilStudyProgrammeMailTemplateContext::DATE_FORMAT = 'd.m.Y' |
|
private |
◆ DEADLINE
const ilStudyProgrammeMailTemplateContext::DEADLINE = 'STUDY_PROGRAMME_DEADLINE' |
|
private |
◆ DESCRIPTION
const ilStudyProgrammeMailTemplateContext::DESCRIPTION = 'STUDY_PROGRAMME_DESCRIPTION' |
|
private |
◆ EXPIRE_DATE
const ilStudyProgrammeMailTemplateContext::EXPIRE_DATE = 'STUDY_PROGRAMME_EXPIRE_DATE' |
|
private |
◆ ID
const ilStudyProgrammeMailTemplateContext::ID = 'prg_context_manual' |
◆ LINK
const ilStudyProgrammeMailTemplateContext::LINK = 'STUDY_PROGRAMME_LINK' |
|
private |
◆ ORG_UNIT
const ilStudyProgrammeMailTemplateContext::ORG_UNIT = 'STUDY_PROGRAMME_ORG_UNITS' |
|
private |
◆ PLACEHOLDER_TRANSLATIONS
const ilStudyProgrammeMailTemplateContext::PLACEHOLDER_TRANSLATIONS |
|
private |
◆ POINTS_CURRENT
const ilStudyProgrammeMailTemplateContext::POINTS_CURRENT = 'STUDY_PROGRAMME_POINTS_CURRENT' |
|
private |
◆ POINTS_REQUIRED
const ilStudyProgrammeMailTemplateContext::POINTS_REQUIRED = 'STUDY_PROGRAMME_POINTS_REQUIRED' |
|
private |
◆ STATUS
const ilStudyProgrammeMailTemplateContext::STATUS = 'STUDY_PROGRAMME_STATUS' |
|
private |
◆ TITLE
const ilStudyProgrammeMailTemplateContext::TITLE = 'STUDY_PROGRAMME_TITLE' |
|
private |
◆ TYPE
const ilStudyProgrammeMailTemplateContext::TYPE = 'STUDY_PROGRAMME_TYPE' |
|
private |
◆ VALIDITY
const ilStudyProgrammeMailTemplateContext::VALIDITY = 'STUDY_PROGRAMME_VALIDITY' |
|
private |
The documentation for this class was generated from the following file: