Inheritance diagram for ilLPStatusTypicalLearningTime:
Collaboration diagram for ilLPStatusTypicalLearningTime:Public Member Functions | |
| ilLPStatusTypicalLearningTime ($a_obj_id) | |
| _getInProgress ($a_obj_id) | |
| _getCompleted ($a_obj_id) | |
Definition at line 35 of file class.ilLPStatusTypicalLearningTime.php.
| ilLPStatusTypicalLearningTime::_getCompleted | ( | $ | a_obj_id | ) |
Reimplemented from ilLPStatus.
Definition at line 66 of file class.ilLPStatusTypicalLearningTime.php.
References $query, $res, $row, and ilMDEducational::_getTypicalLearningTimeSeconds().
{
global $ilDB;
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$tlt = ilMDEducational::_getTypicalLearningTimeSeconds($a_obj_id);
$query = "SELECT DISTINCT(user_id) FROM ut_learning_progress ".
"WHERE spent_time >= '".$tlt."' ".
"AND obj_id = '".$a_obj_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$user_ids[] = $row->user_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 $query, $res, $row, and ilMDEducational::_getTypicalLearningTimeSeconds().
{
global $ilDB;
include_once './Services/MetaData/classes/class.ilMDEducational.php';
$tlt = ilMDEducational::_getTypicalLearningTimeSeconds($a_obj_id);
$query = "SELECT DISTINCT(user_id) FROM ut_learning_progress ".
"WHERE spent_time < '".$tlt."' ".
"AND obj_id = '".$a_obj_id."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$user_ids[] = $row->user_id;
}
return $user_ids ? $user_ids : array();
}
Here is the call graph for this function:| ilLPStatusTypicalLearningTime::ilLPStatusTypicalLearningTime | ( | $ | a_obj_id | ) |
Definition at line 38 of file class.ilLPStatusTypicalLearningTime.php.
References ilLPStatus::ilLPStatus().
{
global $ilDB;
parent::ilLPStatus($a_obj_id);
$this->db =& $ilDB;
}
Here is the call graph for this function:
1.7.1