5include_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"));
 
  104        while ($row = 
$ilDB->fetchAssoc($set)) {
 
  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"));
 
  114            while ($row = 
$ilDB->fetchAssoc($set)) {
 
  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"));
 
  126            while ($row = 
$ilDB->fetchAssoc($set)) {
 
  127                $a_res[$row[
"obj_id"]] = 
true;
 
  134        include_once 
'./Modules/ScormAicc/classes/class.ilScormMailTemplateLPContext.php';
 
An exception for terminatinating execution or to throw for unit testing.
static getNumberOfConditionsOfTrigger($a_trigger_obj_type, $a_trigger_id)
get all conditions of trigger object
const LP_MODE_DEACTIVATED
const LP_MODE_SCORM_PACKAGE
static _lookupSubType($a_obj_id)
lookup subtype id (scorm, )
static getDefaultModes($a_lp_active)
Get available type-specific default modes (no administration needed)
checkSCORMPreconditions()
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
Find (lp-relevant) members for given object ids.