ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSessionMailTemplateParticipantContext Class Reference
+ Inheritance diagram for ilSessionMailTemplateParticipantContext:
+ Collaboration diagram for ilSessionMailTemplateParticipantContext:

Public Member Functions

 getId ()
 
 getTitle ()
 
 getDescription ()
 
 resolveSpecificPlaceholder (string $placeholder_id, array $context_parameters, ilObjUser $recipient=null, bool $html_markup=false)
 {} More...
 
- Public Member Functions inherited from ilMailTemplateContext
 __construct (OrgUnitUserService $orgUnitUserService=null, ilMailEnvironmentHelper $envHelper=null, ilMailUserHelper $usernameHelper=null, ilMailLanguageHelper $languageHelper=null)
 ilMailTemplateContext constructor. More...
 
 getLanguage ()
 
 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 (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 = 'sess_context_participant_manual'
 

Additional Inherited Members

- Protected Member Functions inherited from ilMailTemplateContext
 initLanguage (ilObjUser $user)
 
 initLanguageByIso2Code (string $isoCode)
 
- Protected Attributes inherited from ilMailTemplateContext
 $language
 
 $envHelper
 
 $languageHelper
 
 $userHelper
 
 $orgUnitUserService
 

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().

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

◆ getId()

ilSessionMailTemplateParticipantContext::getId ( )
Returns
string

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

19  : string
20  {
21  return self::ID;
22  }

◆ getTitle()

ilSessionMailTemplateParticipantContext::getTitle ( )
Returns
string

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

References $DIC, and $lng.

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

◆ resolveSpecificPlaceholder()

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

{}

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

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

100  : string {
101  global $DIC;
102 
103  $ilObjDataCache = $DIC['ilObjDataCache'];
104  $obj_id = $ilObjDataCache->lookupObjId($context_parameters['ref_id']);
105  $sess_data = ilObjSession::lookupSession($obj_id);
106  $sess_app = ilSessionAppointment::_lookupAppointment($obj_id);
107 
108 
109  switch ($placeholder_id) {
110  case 'sess_title':
111  return $ilObjDataCache->lookupTitle($obj_id);
112  case 'sess_appointment':
113  return ilSessionAppointment::_appointmentToString($sess_app['start'], $sess_app['end'], $sess_app['fullday']);
114  case 'sess_location':
115  return $sess_data['location'];
116  case 'sess_details':
117  return $sess_data['details'];
118  }
119 
120  return '';
121  }
static lookupSession($a_obj_id)
Get session data.
static _appointmentToString($start, $end, $fulltime)
static _lookupAppointment($a_obj_id)
lookup appointment
$DIC
Definition: xapitoken.php:46
+ 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: