4 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
27 if(!isset(self::$plugins[$a_obj_id]))
29 self::$plugins[$a_obj_id] =
false;
32 include_once
'Services/Repository/classes/class.ilRepositoryObjectPluginSlot.php';
38 self::$plugins[$a_obj_id] = $obj;
48 return self::$plugins[$a_obj_id];
56 if($plugin !== self::INACTIVE_PLUGIN)
58 return (array)$plugin->getLPNotAttempted();
74 if($plugin !== self::INACTIVE_PLUGIN)
76 return (array)$plugin->getLPInProgress();
92 if($plugin !== self::INACTIVE_PLUGIN)
94 return (array)$plugin->getLPCompleted();
110 if($plugin !== self::INACTIVE_PLUGIN)
112 return (array)$plugin->getLPFailed();
128 if($plugin !== self::INACTIVE_PLUGIN)
131 return $plugin->getLPStatusForUser($a_user_id);
148 if($plugin !== self::INACTIVE_PLUGIN)
150 if (method_exists($plugin,
"getPercentageForUser"))
152 return $plugin->getPercentageForUser($a_user_id);
175 $set = $ilDB->query(
"SELECT usr_id".
177 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
178 " AND status = ".$ilDB->quote($a_status,
"integer"));
179 while(
$row = $ilDB->fetchAssoc($set))
181 $all[] =
$row[
"usr_id"];
197 $set = $ilDB->query(
"SELECT status".
199 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
200 " AND usr_id = ".$ilDB->quote($a_user_id,
"integer"));
201 $row = $ilDB->fetchAssoc($set);
202 $status =
$row[
"status"];
214 $set = $ilDB->query(
"SELECT percentage".
216 " WHERE obj_id = ".$ilDB->quote($a_obj_id,
"integer").
217 " AND usr_id = ".$ilDB->quote($a_user_id,
"integer"));
218 $row = $ilDB->fetchAssoc($set);
219 return (
int)
$row[
"percentage"];