4include_once 
'./Services/Mail/classes/class.ilMailTemplateContext.php';
 
   14        const ID = 
'sahs_context_lp';
 
   31                $lng->loadLanguageModule(
'sahs');
 
   33                return $lng->txt(
'sahs_mail_context_lp');
 
   43                $lng->loadLanguageModule(
'sahs');
 
   45                return $lng->txt(
'sahs_mail_context_lp_info');
 
   59                $lng->loadLanguageModule(
'trac');
 
   62                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
   66                $placeholders = array();
 
   69                $placeholders[
'sahs_title'] = array(
 
   70                        'placeholder'   => 
'SCORM_TITLE',
 
   71                        'label'                 => 
$lng->txt(
'obj_sahs')
 
   74                $placeholders[
'sahs_status'] = array(
 
   75                        'placeholder'   => 
'SCORM_STATUS',
 
   76                        'label'                 => 
$lng->txt(
'trac_status')
 
   79                $placeholders[
'sahs_mark'] = array(
 
   80                        'placeholder'   => 
'SCORM_MARK',
 
   81                        'label'                 => 
$lng->txt(
'trac_mark')
 
   85                $lng->loadLanguageModule(
'content');
 
   86                $placeholders[
'sahs_score'] = array(
 
   87                        'placeholder'   => 
'SCORM_SCORE',
 
   88                        'label'                 => 
$lng->txt(
'cont_score')
 
   93                        $placeholders[
'sahs_time_spent'] = array(
 
   94                                'placeholder'   => 
'SCORM_TIME_SPENT',
 
   95                                'label'                 => 
$lng->txt(
'trac_spent_seconds')
 
  101                        $placeholders[
'sahs_first_access'] = array(
 
  102                                'placeholder'   => 
'SCORM_FIRST_ACCESS',
 
  103                                'label'                 => 
$lng->txt(
'trac_first_access')
 
  106                        $placeholders[
'sahs_last_access'] = array(
 
  107                                'placeholder'   => 
'SCORM_LAST_ACCESS',
 
  108                                'label'                 => 
$lng->txt(
'trac_last_access')
 
  113                $placeholders[
'sahs_link'] = array(
 
  114                        'placeholder'   => 
'SCORM_LINK',
 
  115                        'label'                 => 
$lng->txt(
'perma_link')
 
  118                return $placeholders;
 
  129                global $ilObjDataCache;
 
  131                if($recipient === 
null && !in_array($placeholder_id, array(
'sahs_title', 
'sahs_link')))
 
  136                $obj_id = $ilObjDataCache->lookupObjId($context_parameters[
'ref_id']);
 
  138                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  141                switch($placeholder_id)
 
  144                                return $ilObjDataCache->lookupTitle($obj_id);
 
  147                                require_once 
'./Services/Link/classes/class.ilLink.php';
 
  151                                include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';                        
 
  152                                include_once 
'./Services/Tracking/classes/class.ilLearningProgressBaseGUI.php';
 
  161                                include_once 
'./Services/Tracking/classes/class.ilLPMarks.php';
 
  163                                return strlen(trim($mark)) ? $mark : 
'-';
 
  168                                include_once 
'Modules/ScormAicc/classes/class.ilScormLP.php';
 
  170                                if($coll->getItems())
 
  172                                        include_once 
'Services/Tracking/classes/class.ilTrQuery.php';           
 
  175                                                $scores[] = $item[
'title'].
': '.$item[
'score'];
 
  178                                return implode(
"\n", $scores);  
 
  180                        case 'sahs_time_spent':         
 
  183                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  185                                        if(isset($progress[
'spent_seconds']))
 
  187                                                include_once 
'./Services/Utilities/classes/class.ilFormat.php';
 
  193                        case 'sahs_first_access':               
 
  196                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  198                                        if(isset($progress[
'access_time_min']))
 
  205                        case 'sahs_last_access':                
 
  208                                        include_once 
'./Services/Tracking/classes/class.ilLearningProgress.php';
 
  210                                        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
static getInstance($a_obj_id)
static _lookupObjId($a_id)
getSCOsStatusForUser($a_user_id, $a_parent_obj_id, array $a_sco_ids)