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(!in_array($placeholder_id, array(
 
  132                        'crs_last_access'))) {
 
  136                $obj_id = $ilObjDataCache->lookupObjId($context_parameters[
'ref_id']);
 
  138                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  141                $this->getLanguage()->loadLanguageModule(
'trac');
 
  142                $this->getLanguage()->loadLanguageModule(
'crs');
 
  144                switch($placeholder_id)
 
  147                                return $ilObjDataCache->lookupTitle($obj_id);
 
  150                                require_once 
'./Services/Link/classes/class.ilLink.php';
 
  154                                if($recipient === 
null)
 
  159                                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';                        
 
  160                                include_once 
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
 
  169                                if($recipient === 
null)
 
  174                                include_once 
'./Services/Tracking/classes/class.ilLPMarks.php';
 
  176                                return strlen(trim($mark)) ? $mark : 
'-';
 
  178                        case 'crs_time_spent':
 
  179                                if($recipient === 
null)
 
  186                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  188                                        if(isset($progress[
'spent_seconds']))
 
  195                        case 'crs_first_access':
 
  196                                if($recipient === 
null)
 
  203                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  205                                        if(isset($progress[
'access_time_min']))
 
  212                        case 'crs_last_access':
 
  213                                if($recipient === 
null)
 
  220                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  222                                        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)
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