3 declare(strict_types=1);
    50         if ($subtype !== 
'scorm2004') {
    56             if (count($collection->getPossibleItems()) > 0) {
    74         if (count($collection->getPossibleItems()) > 0) {
    97         return parent::getCurrentMode();
   102         if (is_bool($this->precondition_cache)) {
   114     protected static function isLPMember(array &$a_res, 
int $a_usr_id, array $a_obj_ids): bool
   118         $ilDB = $DIC->database();
   122         $set = 
$ilDB->query(
"SELECT id,c_type" .
   124             " WHERE " . 
$ilDB->in(
"id", $a_obj_ids, 
false, 
"integer"));
   125         while ($row = 
$ilDB->fetchAssoc($set)) {
   126             $types[$row[
"c_type"]][] = $row[
"id"];
   130         if (isset($types[
"scorm2004"])) {
   131             $set = 
$ilDB->query(
"SELECT obj_id" .
   133                 " WHERE " . 
$ilDB->in(
"obj_id", $types[
"scorm2004"], 
false, 
"integer") .
   134                 " AND user_id = " . 
$ilDB->quote($a_usr_id, 
"integer"));
   135             while ($row = 
$ilDB->fetchAssoc($set)) {
   141         if (isset($types[
"scorm"])) {
   142             $set = 
$ilDB->query(
"SELECT obj_id" .
   143                 " FROM scorm_tracking" .
   144                 " WHERE " . 
$ilDB->in(
"obj_id", $types[
"scorm"], 
false, 
"integer") .
   145                 " AND user_id = " . 
$ilDB->quote($a_usr_id, 
"integer") .
   146                 " AND lvalue = " . 
$ilDB->quote(
"cmi.core.lesson_status", 
"text"));
   147             while ($row = 
$ilDB->fetchAssoc($set)) {
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupSubType(int $a_obj_id)
lookup subtype id (scorm, ) 
 
const LP_MODE_SCORM_PACKAGE
 
static getNumberOfConditionsOfTrigger(string $a_trigger_obj_type, int $a_trigger_id)
get all conditions of trigger object 
 
static isLPMember(array &$a_res, int $a_usr_id, array $a_obj_ids)
 
const LP_MODE_DEACTIVATED
 
checkSCORMPreconditions()
 
static getDefaultModes(bool $a_lp_active)
 
getCurrentMode()
AK, 14Sep2018: This looks strange, the mode is auto-activated if this object is used as a preconditio...