44         if (!($requested_ref_id > 0)) {
    46                 'No ref id given. Aborting!',
    52         $rbacsystem = $DIC[
'rbacsystem'];
    54         $ilLog = $DIC[
'ilLog'];
    58                 'No exercise found for id: ' . $requested_ref_id,
    64             return $this->
raiseError(
"Parent with ID $requested_ref_id has been deleted.", 
'Client');
    67         $permission_ok = 
false;
    69             if ($rbacsystem->checkAccess(
'read', $ref_id)) {
    70                 $permission_ok = 
true;
    75         if (!$permission_ok) {
    77                 'No permission to read the object with id: ' . $requested_ref_id,
    83         if (!is_object($lm_obj) || $lm_obj->getType() !== 
"sahs") {
    85                 'Wrong obj id or type for scorm object with id ' . $requested_ref_id,
    90         $imsFilename = $lm_obj->getDataDirectory() . DIRECTORY_SEPARATOR . 
"imsmanifest.xml";
    92         if (!file_exists($imsFilename)) {
    94                 'Could not find manifest file for object with ref id ' . $requested_ref_id,
    98         return file_get_contents($imsFilename);
   112         if (!($ref_id > 0)) {
   114                 'No ref id given. Aborting!',
   120         $rbacsystem = $DIC[
'rbacsystem'];
   121         $tree = $DIC[
'tree'];
   122         $ilLog = $DIC[
'ilLog'];
   126                 'No exercise found for id: ' . $ref_id,
   132             return $this->
raiseError(
"Parent with ID $ref_id has been deleted.", 
'Client');
   137         return $certValidator->validate($usr_id, $obj_id);
   152         if (!($a_ref_id > 0)) {
   153             return $this->
raiseError(
'No ref_id given. Aborting!', 
'Client');
   160                 'No scorm module found for id: ' . $a_ref_id,
   166             return $this->
raiseError(
'Learning progress not enabled in this installation. Aborting!', 
'Server');
   175             return 'in_progress';
   177             return 'not_attempted';
 
const LP_STATUS_COMPLETED_NUM
 
getIMSManifestXML(string $sid, int $requested_ref_id)
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
const LP_STATUS_IN_PROGRESS_NUM
 
raiseError(string $a_message, $a_code)
 
hasSCORMCertificate(string $sid, int $ref_id, int $usr_id)
 
getSCORMCompletionStatus(string $sid, int $a_usr_id, int $a_ref_id)
 
static initILIAS()
ilias initialisation 
 
static _enabledLearningProgress()
 
checkSession(string $sid)
 
static _isInTrash(int $ref_id)
 
static _lookupObjectId(int $ref_id)
 
static _lookupStatus(int $a_obj_id, int $a_user_id, bool $a_create=true)
Lookup status. 
 
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id 
 
const LP_STATUS_FAILED_NUM