ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSessionMailTemplateParticipantContext Class Reference
+ Inheritance diagram for ilSessionMailTemplateParticipantContext:
+ Collaboration diagram for ilSessionMailTemplateParticipantContext:

Public Member Functions

 getId ()
 
 getTitle ()
 
 getDescription ()
 
 resolveSpecificPlaceholder ($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false)
 {} More...
 
- Public Member Functions inherited from ilMailTemplateContext
 getLanguage ()
 
 setLanguage ($language)
 
 getId ()
 Returns a unique (in the context of mail template contexts) id. More...
 
 getTitle ()
 Returns a translated title (depending on the current language) which is displayed in the user interface. More...
 
 getDescription ()
 Returns a translated description (depending on the current language) which is displayed in the user interface. More...
 
 getPlaceholders ()
 Return an array of placeholders. More...
 
 getSpecificPlaceholders ()
 Return an array of placeholders. More...
 
 resolveSpecificPlaceholder ($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false)
 
 resolvePlaceholder ($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false)
 

Data Fields

const ID = 'sess_context_participant_manual'
 

Additional Inherited Members

- Protected Member Functions inherited from ilMailTemplateContext
 initLanguage (ilObjUser $user)
 
 initLanguageByIso2Code ($a_code)
 Init language by ISO2 code. More...
 
- Protected Attributes inherited from ilMailTemplateContext
 $language
 

Detailed Description

Member Function Documentation

◆ getDescription()

ilSessionMailTemplateParticipantContext::getDescription ( )
Returns
string

Definition at line 40 of file class.ilSessionMailTemplateParticipantContext.php.

References $DIC, $lng, and ilMailTemplateContext\getSpecificPlaceholders().

41  {
42  global $DIC;
43 
44  $lng = $DIC['lng'];
45  $lng->loadLanguageModule('sess');
46 
47  return $lng->txt('sess_mail_context_participant_info');
48  }
global $DIC
Definition: saml.php:7
$lng
+ Here is the call graph for this function:

◆ getId()

ilSessionMailTemplateParticipantContext::getId ( )
Returns
string

Definition at line 19 of file class.ilSessionMailTemplateParticipantContext.php.

20  {
21  return self::ID;
22  }

◆ getTitle()

ilSessionMailTemplateParticipantContext::getTitle ( )
Returns
string

Definition at line 27 of file class.ilSessionMailTemplateParticipantContext.php.

References $DIC, and $lng.

28  {
29  global $DIC;
30 
31  $lng = $DIC['lng'];
32 
33  $lng->loadLanguageModule('sess');
34  return $lng->txt('sess_mail_context_participant_title');
35  }
global $DIC
Definition: saml.php:7
$lng

◆ resolveSpecificPlaceholder()

ilSessionMailTemplateParticipantContext::resolveSpecificPlaceholder (   $placeholder_id,
array  $context_parameters,
ilObjUser  $recipient = null,
  $html_markup = false 
)

{}

Definition at line 95 of file class.ilSessionMailTemplateParticipantContext.php.

References $DIC, ilSessionAppointment\_appointmentToString(), ilSessionAppointment\_lookupAppointment(), and ilObjSession\lookupSession().

96  {
97  global $DIC;
98 
99  $ilObjDataCache = $DIC['ilObjDataCache'];
100  $obj_id = $ilObjDataCache->lookupObjId($context_parameters['ref_id']);
101  $sess_data = ilObjSession::lookupSession($obj_id);
102  $sess_app = ilSessionAppointment::_lookupAppointment($obj_id);
103 
104 
105  switch ($placeholder_id) {
106  case 'sess_title':
107  return $ilObjDataCache->lookupTitle($obj_id);
108  case 'sess_appointment':
109  return ilSessionAppointment::_appointmentToString($sess_app['start'], $sess_app['end'], $sess_app['fullday']);
110  case 'sess_location':
111  return $sess_data['location'];
112  case 'sess_details':
113  return $sess_data['details'];
114  }
115 
116  return '';
117  }
global $DIC
Definition: saml.php:7
static lookupSession($a_obj_id)
Get session data.
static _appointmentToString($start, $end, $fulltime)
static _lookupAppointment($a_obj_id)
lookup appointment
+ Here is the call graph for this function:

Field Documentation

◆ ID

const ilSessionMailTemplateParticipantContext::ID = 'sess_context_participant_manual'

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