ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
ilLPCollectionOfSCOs Class Reference

LP collection of SCOs. More...

+ Inheritance diagram for ilLPCollectionOfSCOs:
+ Collaboration diagram for ilLPCollectionOfSCOs:

Public Member Functions

 getPossibleItems ()
 
 getTableGUIData ($a_parent_ref_id)
 
 getScoresForUserAndCP_Node_Id ($item_id, $user_id)
 
- Public Member Functions inherited from ilLPCollection
 __construct ($a_obj_id, $a_mode)
 
 hasSelectableItems ()
 
 cloneCollection ($a_target_id, $a_copy_id)
 
 getItems ()
 
 delete ()
 
 isAssignedEntry ($a_item_id)
 
 deactivateEntries (array $a_item_ids)
 
 activateEntries (array $a_item_ids)
 

Static Protected Attributes

static $possible_items = array()
 

Additional Inherited Members

- Protected Member Functions inherited from ilLPCollection
 read ()
 
 validateEntry ($a_item_id)
 
 addEntry ($a_item_id)
 
 deleteEntry ($a_item_id)
 
- Protected Attributes inherited from ilLPCollection
 $obj_id
 
 $mode
 
 $items
 

Detailed Description

LP collection of SCOs.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id
class.ilLPCollections.php 40326 2013-03-05 11:39:24Z jluetzen

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

Member Function Documentation

◆ getPossibleItems()

ilLPCollectionOfSCOs::getPossibleItems ( )

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

22 {
23 if(!isset(self::$possible_items[$this->obj_id]))
24 {
25 include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
26
27 $items = array();
28
29 switch(ilObjSAHSLearningModule::_lookupSubType($this->obj_id))
30 {
31 case 'hacp':
32 case 'aicc':
33 include_once './Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
34 foreach(ilObjAICCLearningModule::_getTrackingItems($this->obj_id) as $item)
35 {
36 $items[$item['obj_id']]['title'] = $item['title'];
37 }
38 break;
39
40 case 'scorm':
41 include_once './Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
42 include_once './Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
43 foreach(ilObjSCORMLearningModule::_getTrackingItems($this->obj_id) as $item)
44 {
45 $items[$item->getId()]['title'] = $item->getTitle();
46 }
47 break;
48
49 case 'scorm2004':
50 include_once './Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
51 foreach(ilObjSCORM2004LearningModule::_getTrackingItems($this->obj_id) as $item)
52 {
53 $items[$item['id']]['title'] = $item['title'];
54 }
55 break;
56 }
57
58 self::$possible_items[$this->obj_id] = $items;
59 }
60
61 return self::$possible_items[$this->obj_id];
62 }
_getTrackingItems($a_obj_id)
get all tracking items of scorm object
_lookupSubType($a_obj_id)
lookup subtype id (scorm, aicc, hacp)
_getTrackingItems($a_obj_id)
get all tracking items of scorm object
_getTrackingItems($a_obj_id)
get all tracking items of scorm object @access static

References ilLPCollection\$items, ilLPCollection\$obj_id, ilObjSCORM2004LearningModule\_getTrackingItems(), ilObjAICCLearningModule\_getTrackingItems(), ilObjSCORMLearningModule\_getTrackingItems(), and ilObjSAHSLearningModule\_lookupSubType().

Referenced by getTableGUIData().

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

◆ getScoresForUserAndCP_Node_Id()

ilLPCollectionOfSCOs::getScoresForUserAndCP_Node_Id (   $item_id,
  $user_id 
)

Definition at line 93 of file class.ilLPCollectionOfSCOs.php.

94 {
95 include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
96 switch(ilObjSAHSLearningModule::_lookupSubType($this->obj_id))
97 {
98 case 'hacp':
99 case 'aicc':
100 include_once './Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
101 return ilObjAICCLearningModule::_getScoresForUser($item_id, $user_id);
102
103 case 'scorm':
104 include_once './Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
105 //include_once './Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
106 return ilObjSCORMLearningModule::_getScoresForUser($item_id, $user_id);
107
108 case 'scorm2004':
109 include_once './Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
111 }
112
113 return array("raw" => null, "max" => null, "scaled" => null);
114 }
static _getScores2004ForUser($a_cp_node_id, $a_user)

References ilObjSCORM2004LearningModule\_getScores2004ForUser(), ilObjSCORMLearningModule\_getScoresForUser(), and ilObjSAHSLearningModule\_lookupSubType().

+ Here is the call graph for this function:

◆ getTableGUIData()

ilLPCollectionOfSCOs::getTableGUIData (   $a_parent_ref_id)

Definition at line 69 of file class.ilLPCollectionOfSCOs.php.

70 {
71 $data = array();
72
73 foreach($this->getPossibleItems() as $sco_id => $item)
74 {
75 $tmp = array();
76 $tmp['id'] = $sco_id;
77 $tmp['ref_id'] = 0;
78 $tmp['title'] = $item['title'];
79 $tmp["status"] = $this->isAssignedEntry($sco_id);
80
81 $data[] = $tmp;
82 }
83
84 return $data;
85 }
isAssignedEntry($a_item_id)

References $data, getPossibleItems(), and ilLPCollection\isAssignedEntry().

+ Here is the call graph for this function:

Field Documentation

◆ $possible_items

ilLPCollectionOfSCOs::$possible_items = array()
staticprotected

Definition at line 18 of file class.ilLPCollectionOfSCOs.php.


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