ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLPStatusTypicalLearningTime Class Reference
+ Inheritance diagram for ilLPStatusTypicalLearningTime:
+ Collaboration diagram for ilLPStatusTypicalLearningTime:

Public Member Functions

 ilLPStatusTypicalLearningTime ($a_obj_id)
 _getInProgress ($a_obj_id)
 _getCompleted ($a_obj_id)
 _getStatusInfo ($a_obj_id)
- Public Member Functions inherited from ilLPStatus
 ilLPStatus ($a_obj_id)
 _getCountNotAttempted ($a_obj_id)
 _getNotAttempted ($a_obj_id)
 _getCountInProgress ($a_obj_id)
 _getCountCompleted ($a_obj_id)
 _getFailed ($a_obj_id)
 _getCountFailed ()
 _getTypicalLearningTime ($a_obj_id)

Additional Inherited Members

- Data Fields inherited from ilLPStatus
 $obj_id = null
 $db = null

Detailed Description

Definition at line 35 of file class.ilLPStatusTypicalLearningTime.php.

Member Function Documentation

ilLPStatusTypicalLearningTime::_getCompleted (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 68 of file class.ilLPStatusTypicalLearningTime.php.

References $ilDB, _getStatusInfo(), and ilChangeEvent\_lookupReadEvents().

{
global $ilDB;
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$status_info = ilLPStatusWrapper::_getStatusInfo($a_obj_id);
$tlt = $status_info['tlt'];
// TODO: move to status info
include_once './Services/Tracking/classes/class.ilChangeEvent.php';
foreach($all as $event)
{
if($event['spent_seconds'] >= $tlt)
{
$user_ids[] = $event['usr_id'];
}
}
return $user_ids ? $user_ids : array();
}

+ Here is the call graph for this function:

ilLPStatusTypicalLearningTime::_getInProgress (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 46 of file class.ilLPStatusTypicalLearningTime.php.

References $ilDB, _getStatusInfo(), and ilChangeEvent\_lookupReadEvents().

{
global $ilDB;
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$status_info = ilLPStatusWrapper::_getStatusInfo($a_obj_id);
$tlt = $status_info['tlt'];
include_once './Services/Tracking/classes/class.ilChangeEvent.php';
foreach($all as $event)
{
if($event['spent_seconds'] < $tlt)
{
$user_ids[] = $event['usr_id'];
}
}
return $user_ids ? $user_ids : array();
}

+ Here is the call graph for this function:

ilLPStatusTypicalLearningTime::_getStatusInfo (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 91 of file class.ilLPStatusTypicalLearningTime.php.

References ilMDEducational\_getTypicalLearningTimeSeconds().

Referenced by _getCompleted(), and _getInProgress().

{
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$status_info['tlt'] = ilMDEducational::_getTypicalLearningTimeSeconds($a_obj_id);
return $status_info;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPStatusTypicalLearningTime::ilLPStatusTypicalLearningTime (   $a_obj_id)

Definition at line 38 of file class.ilLPStatusTypicalLearningTime.php.

References $ilDB, and ilLPStatus\ilLPStatus().

{
global $ilDB;
parent::ilLPStatus($a_obj_id);
$this->db =& $ilDB;
}

+ Here is the call graph for this function:


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