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')
 
   87                        $placeholders[
'crs_time_spent'] = array(
 
   88                                'placeholder'   => 
'COURSE_TIME_SPENT',
 
   89                                'label'                 => 
$lng->txt(
'trac_spent_seconds')
 
   95                        $placeholders[
'crs_first_access'] = array(
 
   96                                'placeholder'   => 
'COURSE_FIRST_ACCESS',
 
   97                                'label'                 => 
$lng->txt(
'trac_first_access')
 
  100                        $placeholders[
'crs_last_access'] = array(
 
  101                                'placeholder'   => 
'COURSE_LAST_ACCESS',
 
  102                                'label'                 => 
$lng->txt(
'trac_last_access')
 
  107                $placeholders[
'crs_link'] = array(
 
  108                        'placeholder'   => 
'COURSE_LINK',
 
  109                        'label'                 => 
$lng->txt(
'crs_mail_permanent_link')
 
  112                return $placeholders;
 
  123                global $ilObjDataCache;
 
  125                if($recipient === 
null && !in_array($placeholder_id, array(
'crs_title', 
'crs_link')))
 
  130                $obj_id = $ilObjDataCache->lookupObjId($context_parameters[
'ref_id']);
 
  132                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  135                switch($placeholder_id)
 
  138                                return $ilObjDataCache->lookupTitle($obj_id);
 
  141                                require_once 
'./Services/Link/classes/class.ilLink.php';
 
  145                                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';                        
 
  146                                include_once 
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
 
  155                                include_once 
'./Services/Tracking/classes/class.ilLPMarks.php';
 
  157                                return strlen(trim($mark)) ? $mark : 
'-';
 
  159                        case 'crs_time_spent':          
 
  162                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  164                                        if(isset($progress[
'spent_seconds']))
 
  166                                                include_once 
'./Services/Utilities/classes/class.ilFormat.php';
 
  172                        case 'crs_first_access':                
 
  175                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  177                                        if(isset($progress[
'access_time_min']))
 
  184                        case 'crs_last_access':         
 
  187                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  189                                        if(isset($progress[
'access_time']))
 
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
_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
_getStatusText($a_status, $a_lng=null)
Get status alt text.
_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