30 include_once 
'./webservice/soap/classes/class.ilSoapAdministration.php';
    45         if (!($requested_ref_id > 0)) {
    47                 'No ref id given. Aborting!',
    53         $rbacsystem = $DIC[
'rbacsystem'];
    55         $ilLog = $DIC[
'ilLog'];
    59                 'No exercise found for id: ' . $requested_ref_id,
    65             return $this->
raiseError(
"Parent with ID $requested_ref_id has been deleted.", 
'Client');
    68         $permission_ok = 
false;
    70             if ($rbacsystem->checkAccess(
'read', $ref_id)) {
    71                 $permission_ok = 
true;
    76         if (!$permission_ok) {
    78                 'No permission to read the object with id: ' . $requested_ref_id,
    84         if (!is_object($lm_obj) || $lm_obj->getType() !== 
"sahs") {
    86                 'Wrong obj id or type for scorm object with id ' . $requested_ref_id,
    91         require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
    92         require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResource.php");
    94         $imsFilename = $lm_obj->getDataDirectory() . DIRECTORY_SEPARATOR . 
"imsmanifest.xml";
    96         if (!file_exists($imsFilename)) {
    98                 'Could not find manifest file for object with ref id ' . $requested_ref_id,
   102         return file_get_contents($imsFilename);
   116         if (!($ref_id > 0)) {
   118                 'No ref id given. Aborting!',
   124         $rbacsystem = $DIC[
'rbacsystem'];
   125         $tree = $DIC[
'tree'];
   126         $ilLog = $DIC[
'ilLog'];
   130                 'No exercise found for id: ' . $ref_id,
   136             return $this->
raiseError(
"Parent with ID $ref_id has been deleted.", 
'Client');
   141         return $certValidator->validate($usr_id, $obj_id);
   156         if (!($a_ref_id > 0)) {
   157             return $this->
raiseError(
'No ref_id given. Aborting!', 
'Client');
   160         include_once 
'include/inc.header.php';
   164                 'No scorm module found for id: ' . $a_ref_id,
   169         include_once 
'Services/Tracking/classes/class.ilLPStatus.php';
   170         include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
   173             return $this->
raiseError(
'Learning progress not enabled in this installation. Aborting!', 
'Server');
   182             return 'in_progress';
   184             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 _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