4 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
23 include_once
"Services/Object/classes/class.ilObjectLP.php";
25 return $olp->getPluginInstance();
35 return (array)$plugin->getLPNotAttempted();
53 return (array)$plugin->getLPInProgress();
71 return (array)$plugin->getLPCompleted();
89 return (array)$plugin->getLPFailed();
108 return $plugin->getLPStatusForUser($a_user_id);
127 if (method_exists($plugin,
"getPercentageForUser"))
129 return $plugin->getPercentageForUser($a_user_id);
152 $set = $ilDB->query(
"SELECT usr_id".
154 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
155 " AND status = ".$ilDB->quote($a_status,
"integer"));
156 while(
$row = $ilDB->fetchAssoc($set))
158 $all[] =
$row[
"usr_id"];
174 $set = $ilDB->query(
"SELECT status".
176 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
177 " AND usr_id = ".$ilDB->quote($a_user_id,
"integer"));
178 $row = $ilDB->fetchAssoc($set);
179 $status =
$row[
"status"];
191 $set = $ilDB->query(
"SELECT percentage".
193 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
194 " AND usr_id = ".$ilDB->quote($a_user_id,
"integer"));
195 $row = $ilDB->fetchAssoc($set);
196 return (
int)
$row[
"percentage"];