ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

ilLPCollectionOfSCOs::getPossibleItems ( )

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

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

Referenced by getTableGUIData().

{
if(!isset(self::$possible_items[$this->obj_id]))
{
include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
$items = array();
{
case 'hacp':
case 'aicc':
include_once './Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
foreach(ilObjAICCLearningModule::_getTrackingItems($this->obj_id) as $item)
{
$items[$item['obj_id']]['title'] = $item['title'];
}
break;
case 'scorm':
include_once './Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
include_once './Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
foreach(ilObjSCORMLearningModule::_getTrackingItems($this->obj_id) as $item)
{
$items[$item->getId()]['title'] = $item->getTitle();
}
break;
case 'scorm2004':
include_once './Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
foreach(ilObjSCORM2004LearningModule::_getTrackingItems($this->obj_id) as $item)
{
$items[$item['id']]['title'] = $item['title'];
}
break;
}
self::$possible_items[$this->obj_id] = $items;
}
return self::$possible_items[$this->obj_id];
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPCollectionOfSCOs::getScoresForUserAndCP_Node_Id (   $item_id,
  $user_id 
)

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

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

{
include_once './Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
{
case 'hacp':
case 'aicc':
include_once './Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
return ilObjAICCLearningModule::_getScoresForUser($item_id, $user_id);
case 'scorm':
include_once './Modules/ScormAicc/classes/class.ilObjSCORMLearningModule.php';
//include_once './Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
return ilObjSCORMLearningModule::_getScoresForUser($item_id, $user_id);
case 'scorm2004':
include_once './Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
}
return array("raw" => null, "max" => null, "scaled" => null);
}

+ Here is the call graph for this function:

ilLPCollectionOfSCOs::getTableGUIData (   $a_parent_ref_id)

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

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

{
$data = array();
foreach($this->getPossibleItems() as $sco_id => $item)
{
$tmp = array();
$tmp['id'] = $sco_id;
$tmp['ref_id'] = 0;
$tmp['title'] = $item['title'];
$tmp["status"] = $this->isAssignedEntry($sco_id);
$data[] = $tmp;
}
return $data;
}

+ Here is the call graph for this function:

Field Documentation

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: