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 =
100 $set = $ilDB->query(
"SELECT id,c_type" .
102 " WHERE " . $ilDB->in(
"id", $a_obj_ids,
"",
"integer"));
103 while (
$row = $ilDB->fetchAssoc($set)) {
104 $types[
$row[
"c_type"]][] = $row[
"id"];
108 if (isset($types[
"scorm2004"])) {
109 $set = $ilDB->query(
"SELECT obj_id" .
111 " WHERE " . $ilDB->in(
"obj_id", $types[
"scorm2004"],
"",
"integer") .
112 " AND user_id = " . $ilDB->quote($a_usr_id,
"integer"));
113 while (
$row = $ilDB->fetchAssoc($set)) {
114 $a_res[
$row[
"obj_id"]] =
true;
119 if (isset($types[
"scorm"])) {
120 $set = $ilDB->query(
"SELECT obj_id" .
121 " FROM scorm_tracking" .
122 " WHERE " . $ilDB->in(
"obj_id", $types[
"scorm"],
"",
"integer") .
123 " AND user_id = " . $ilDB->quote($a_usr_id,
"integer") .
124 " AND lvalue = " . $ilDB->quote(
"cmi.core.lesson_status",
"text"));
125 while (
$row = $ilDB->fetchAssoc($set)) {
126 $a_res[
$row[
"obj_id"]] =
true;
133 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)
Create styles array
The data for the language used.
const LP_MODE_DEACTIVATED
checkSCORMPreconditions()
static getNumberOfConditionsOfTrigger($a_trigger_obj_type, $a_trigger_id)
static getDefaultModes($a_lp_active)