ILIAS  Release_3_10_x_branch Revision 61812
 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 $res, _getStatusInfo(), and DB_FETCHMODE_OBJECT.

{
global $ilDB;
$status_info = ilLPStatusWrapper::_getStatusInfo($a_obj_id);
$required_visits = $status_info['visits'];
$query = "SELECT DISTINCT(usr_id) FROM read_event ".
"WHERE read_count >= '".$required_visits."' ".
"AND obj_id = '".$a_obj_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$user_ids[] = $row->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 $res, _getStatusInfo(), and DB_FETCHMODE_OBJECT.

{
global $ilDB;
$status_info = ilLPStatusWrapper::_getStatusInfo($a_obj_id);
$required_visits = $status_info['visits'];
$query = "SELECT DISTINCT(usr_id) FROM read_event ".
"WHERE read_count < '".$required_visits."' ".
"AND obj_id = '".$a_obj_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$user_ids[] = $row->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 87 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 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: