4include_once 
'./Services/Mail/classes/class.ilMailTemplateContext.php';
 
   14    const ID = 
'crs_context_tutor_manual';
 
   31        $lng->loadLanguageModule(
'crs');
 
   33        return $lng->txt(
'crs_mail_context_tutor_title');
 
   43        $lng->loadLanguageModule(
'crs');
 
   45        return $lng->txt(
'crs_mail_context_tutor_info');
 
   59        $lng->loadLanguageModule(
'crs');
 
   60        $lng->loadLanguageModule(
'trac');
 
   63        include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
   67        $placeholders = array();
 
   70        $placeholders[
'crs_title'] = array(
 
   71            'placeholder'       => 
'COURSE_TITLE',
 
   72            'label'                     => 
$lng->txt(
'crs_title')
 
   75        $placeholders[
'crs_status'] = array(
 
   76            'placeholder'       => 
'COURSE_STATUS',
 
   77            'label'                     => 
$lng->txt(
'trac_status')
 
   80        $placeholders[
'crs_mark'] = array(
 
   81            'placeholder'       => 
'COURSE_MARK',
 
   82            'label'                     => 
$lng->txt(
'trac_mark')
 
   86            $placeholders[
'crs_time_spent'] = array(
 
   87                'placeholder'   => 
'COURSE_TIME_SPENT',
 
   88                'label'                 => 
$lng->txt(
'trac_spent_seconds')
 
   93            $placeholders[
'crs_first_access'] = array(
 
   94                'placeholder'   => 
'COURSE_FIRST_ACCESS',
 
   95                'label'                 => 
$lng->txt(
'trac_first_access')
 
   98            $placeholders[
'crs_last_access'] = array(
 
   99                'placeholder'   => 
'COURSE_LAST_ACCESS',
 
  100                'label'                 => 
$lng->txt(
'trac_last_access')
 
  105        $placeholders[
'crs_link'] = array(
 
  106            'placeholder'       => 
'COURSE_LINK',
 
  107            'label'                     => 
$lng->txt(
'crs_mail_permanent_link')
 
  110        return $placeholders;
 
  121        global $ilObjDataCache;
 
  123        if (!in_array($placeholder_id, array(
 
  130            'crs_last_access'))) {
 
  134        $obj_id = $ilObjDataCache->lookupObjId($context_parameters[
'ref_id']);
 
  136        include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  142        switch ($placeholder_id) {
 
  144                return $ilObjDataCache->lookupTitle($obj_id);
 
  147                require_once 
'./Services/Link/classes/class.ilLink.php';
 
  151                if ($recipient === 
null) {
 
  155                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';
 
  156                include_once 
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
 
  164                if ($recipient === 
null) {
 
  168                include_once 
'./Services/Tracking/classes/class.ilLPMarks.php';
 
  170                return strlen(trim($mark)) ? $mark : 
'-';
 
  172            case 'crs_time_spent':
 
  173                if ($recipient === 
null) {
 
  178                    include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  180                    if (isset($progress[
'spent_seconds'])) {
 
  186            case 'crs_first_access':
 
  187                if ($recipient === 
null) {
 
  192                    include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  194                    if (isset($progress[
'access_time_min'])) {
 
  200            case 'crs_last_access':
 
  201                if ($recipient === 
null) {
 
  206                    include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  208                    if (isset($progress[
'access_time'])) {
 
An exception for terminatinating execution or to throw for unit testing.
static secondsToString($seconds, $force_with_seconds=false, $a_lng=null)
converts seconds to string: Long: 7 days 4 hour(s) ...
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date @access public.
@classDescription Date and time handling
static _lookupMark($a_usr_id, $a_obj_id)
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
const LP_STATUS_NOT_ATTEMPTED_NUM
static _getStatusText($a_status, $a_lng=null)
Get status alt text.
static _getProgress($a_user_id, $a_obj_id)
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
Class ilMailTemplateContext.
getSpecificPlaceholders()
Return an array of placeholders.
resolveSpecificPlaceholder($placeholder_id, array $context_parameters, ilObjUser $recipient=null, $html_markup=false)
const EXTENDED_DATA_SPENT_SECONDS
const EXTENDED_DATA_LAST_ACCESS