5 include_once
"Services/Object/classes/class.ilObjectLP.php";
36 include_once
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
38 if ($subtype !=
"scorm2004") {
43 include_once
"Services/Tracking/classes/collection/class.ilLPCollectionOfSCOs.php";
45 if (
sizeof($collection->getPossibleItems())) {
56 include_once
"Services/Tracking/classes/collection/class.ilLPCollectionOfSCOs.php";
58 if (
sizeof($collection->getPossibleItems())) {
74 return parent::getCurrentMode();
83 if (!is_null($this->precondition_cache)) {
87 $this->precondition_cache =
94 protected static function isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
101 $set =
$ilDB->query(
"SELECT id,c_type" .
103 " WHERE " .
$ilDB->in(
"id", $a_obj_ids,
"",
"integer"));
105 $types[
$row[
"c_type"]][] = $row[
"id"];
109 if (isset($types[
"scorm2004"])) {
110 $set =
$ilDB->query(
"SELECT obj_id" .
112 " WHERE " .
$ilDB->in(
"obj_id", $types[
"scorm2004"],
"",
"integer") .
113 " AND user_id = " .
$ilDB->quote($a_usr_id,
"integer"));
115 $a_res[
$row[
"obj_id"]] =
true;
120 if (isset($types[
"scorm"])) {
121 $set =
$ilDB->query(
"SELECT obj_id" .
122 " FROM scorm_tracking" .
123 " WHERE " .
$ilDB->in(
"obj_id", $types[
"scorm"],
"",
"integer") .
124 " AND user_id = " .
$ilDB->quote($a_usr_id,
"integer") .
125 " AND lvalue = " .
$ilDB->quote(
"cmi.core.lesson_status",
"text"));
127 $a_res[
$row[
"obj_id"]] =
true;
134 include_once
'./Modules/ScormAicc/classes/class.ilScormMailTemplateLPContext.php';
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
const LP_MODE_SCORM_PACKAGE
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
const LP_MODE_DEACTIVATED
checkSCORMPreconditions()
static getNumberOfConditionsOfTrigger($a_trigger_obj_type, $a_trigger_id)
get all conditions of trigger object
static getDefaultModes($a_lp_active)