ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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

- Static Public Member Functions inherited from ilLPCollection
static getInstanceByMode ($a_obj_id, $a_mode)
 
static getCollectionModes ()
 
- 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 94 of file class.ilLPCollectionOfSCOs.php.

95 {
96 include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
97 switch(ilObjSAHSLearningModule::_lookupSubType($this->obj_id))
98 {
99 case 'hacp':
100 case 'aicc':
101 include_once './Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
102 return ilObjAICCLearningModule::_getScoresForUser($item_id, $user_id);
103
104 case 'scorm':
105 include_once './Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
106 //include_once './Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
107 return ilObjSCORMLearningModule::_getScoresForUser($item_id, $user_id);
108
109 case 'scorm2004':
110 include_once './Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
112 }
113
114 return array("raw" => null, "max" => null, "scaled" => null);
115 }
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['type'] = 'sco';
79 $tmp['title'] = $item['title'];
80 $tmp["status"] = $this->isAssignedEntry($sco_id);
81
82 $data[] = $tmp;
83 }
84
85 return $data;
86 }
isAssignedEntry($a_item_id)
$data

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: