4include_once 
'./Services/Tracking/classes/class.ilLPStatus.php';
 
   23        include_once 
"Services/Object/classes/class.ilObjectLP.php";
 
   25        return $olp->getPluginInstance();
 
   33                return (array) 
$plugin->getLPNotAttempted();
 
   47                return (array) 
$plugin->getLPInProgress();
 
   61                return (array) 
$plugin->getLPCompleted();
 
   75                return (array) 
$plugin->getLPFailed();
 
   90                return $plugin->getLPStatusForUser($a_user_id);
 
  105                if (method_exists(
$plugin, 
"getPercentageForUser")) {
 
  106                    return $plugin->getPercentageForUser($a_user_id);
 
  131        $set = 
$ilDB->query(
"SELECT usr_id" .
 
  132            " FROM ut_lp_marks" .
 
  133            " WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
"integer") .
 
  134            " AND status = " . 
$ilDB->quote($a_status, 
"integer"));
 
  135        while ($row = 
$ilDB->fetchAssoc($set)) {
 
  136            $all[] = $row[
"usr_id"];
 
  154        $set = 
$ilDB->query(
"SELECT status" .
 
  155            " FROM ut_lp_marks" .
 
  156            " WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
"integer") .
 
  157            " AND usr_id = " . 
$ilDB->quote($a_user_id, 
"integer"));
 
  158        $row = 
$ilDB->fetchAssoc($set);
 
  159        $status = $row[
"status"];
 
  172        $set = 
$ilDB->query(
"SELECT percentage" .
 
  173            " FROM ut_lp_marks" .
 
  174            " WHERE obj_id = " . 
$ilDB->quote($a_obj_id, 
"integer") .
 
  175            " AND usr_id = " . 
$ilDB->quote($a_user_id, 
"integer"));
 
  176        $row = 
$ilDB->fetchAssoc($set);
 
  177        return (
int) $row[
"percentage"];
 
An exception for terminatinating execution or to throw for unit testing.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static initPluginObj($a_obj_id)
Get ilObjectPlugin for object id.
static _getInProgress($a_obj_id)
static _getFailed($a_obj_id)
static getLPStatusData($a_obj_id, $a_status)
Read existing LP status data.
static getLPDataForUser($a_obj_id, $a_user_id)
Read existing LP status data for user.
static getPercentageForUser($a_obj_id, $a_user_id)
static _getCompleted($a_obj_id)
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.
static _getNotAttempted($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
const LP_STATUS_NOT_ATTEMPTED_NUM
static getInstance($a_obj_id)