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

Public Member Functions

 ilLPStatusVisits ($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 37 of file class.ilLPStatusVisits.php.

Member Function Documentation

ilLPStatusVisits::_getCompleted (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 67 of file class.ilLPStatusVisits.php.

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

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

+ Here is the call graph for this function:

ilLPStatusVisits::_getInProgress (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 48 of file class.ilLPStatusVisits.php.

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

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

+ Here is the call graph for this function:

ilLPStatusVisits::_getStatusInfo (   $a_obj_id)

Reimplemented from ilLPStatus.

Definition at line 86 of file class.ilLPStatusVisits.php.

References ilLPObjSettings\_lookupVisits().

Referenced by _getCompleted(), and _getInProgress().

{
include_once 'Services/Tracking/classes/class.ilLPObjSettings.php';
$status_info['visits'] = ilLPObjSettings::_lookupVisits($a_obj_id);
return $status_info;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPStatusVisits::ilLPStatusVisits (   $a_obj_id)

Definition at line 40 of file class.ilLPStatusVisits.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: