ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
ilScormLP Class Reference
+ Inheritance diagram for ilScormLP:
+ Collaboration diagram for ilScormLP:

Public Member Functions

 getDefaultMode ()
 
 getValidModes ()
 
 getCurrentMode ()
 
- Public Member Functions inherited from ilObjectLP
 resetCaches ()
 
 isAnonymized ()
 
 getDefaultMode ()
 
 getValidModes ()
 
 getCurrentMode ()
 
 isActive ()
 
 getModeText ($a_mode)
 
 getModeInfoText ($a_mode)
 
 getCollectionInstance ()
 
 getMembers ($a_search=true)
 
 resetLPDataForCompleteObject ($a_recursive=true)
 
 resetLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 handleToTrash ()
 
 handleDelete ()
 

Protected Member Functions

 checkSCORMPreconditions ()
 
- Protected Member Functions inherited from ilObjectLP
 __construct ($a_obj_id)
 
 resetCustomLPDataForUserIds (array $a_user_ids, $a_recursive=true)
 
 gatherLPUsers ()
 
 updateParentCollections ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectLP
static getInstance ($a_obj_id)
 
static isSupportedObjectType ($a_type)
 
static handleMove ($a_source_ref_id)
 
- Protected Attributes inherited from ilObjectLP
 $obj_id
 
 $collection_instance
 
 $mode
 

Detailed Description

Definition at line 14 of file class.ilScormLP.php.

Member Function Documentation

◆ checkSCORMPreconditions()

ilScormLP::checkSCORMPreconditions ( )
protected

Definition at line 72 of file class.ilScormLP.php.

73 {
74 include_once('./Services/AccessControl/classes/class.ilConditionHandler.php');
75 if(count(ilConditionHandler::_getConditionsOfTrigger('sahs', $this->obj_id)))
76 {
77 return true;
78 }
79 return false;
80 }
_getConditionsOfTrigger($a_trigger_obj_type, $a_trigger_id)
get all conditions of trigger object

References ilConditionHandler\_getConditionsOfTrigger().

Referenced by getCurrentMode(), and getValidModes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentMode()

ilScormLP::getCurrentMode ( )

Reimplemented from ilObjectLP.

Definition at line 63 of file class.ilScormLP.php.

64 {
65 if($this->checkSCORMPreconditions())
66 {
68 }
69 return parent::getCurrentMode();
70 }
checkSCORMPreconditions()

References checkSCORMPreconditions(), and ilLPObjSettings\LP_MODE_SCORM.

+ Here is the call graph for this function:

◆ getDefaultMode()

ilScormLP::getDefaultMode ( )

Reimplemented from ilObjectLP.

Definition at line 16 of file class.ilScormLP.php.

References ilLPObjSettings\LP_MODE_DEACTIVATED.

◆ getValidModes()

ilScormLP::getValidModes ( )

Reimplemented from ilObjectLP.

Definition at line 21 of file class.ilScormLP.php.

22 {
23 include_once "./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php";
24 $subtype = ilObjSAHSLearningModule::_lookupSubType($this->obj_id);
25 if($subtype != "scorm2004")
26 {
27 if($this->checkSCORMPreconditions())
28 {
30 }
31
32 include_once "Services/Tracking/classes/collection/class.ilLPCollectionOfSCOs.php";
33 $collection = new ilLPCollectionOfSCOs($this->obj_id, ilLPObjSettings::LP_MODE_SCORM);
34 if(sizeof($collection->getPossibleItems()))
35 {
38 }
40 }
41 else
42 {
43 if($this->checkSCORMPreconditions())
44 {
47 }
48
49 include_once "Services/Tracking/classes/collection/class.ilLPCollectionOfSCOs.php";
50 $collection = new ilLPCollectionOfSCOs($this->obj_id, ilLPObjSettings::LP_MODE_SCORM);
51 if(sizeof($collection->getPossibleItems()))
52 {
56 }
57
60 }
61 }
_lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)

References ilObjSAHSLearningModule\_lookupSubType(), checkSCORMPreconditions(), ilLPObjSettings\LP_MODE_DEACTIVATED, ilLPObjSettings\LP_MODE_SCORM, and ilLPObjSettings\LP_MODE_SCORM_PACKAGE.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: