33 include_once
'./webservice/soap/classes/class.ilSoapAdministration.php';
65 global $rbacsystem, $tree,
$ilLog;
76 return $this->
__raiseError(
"Parent with ID $ref_id has been deleted.",
'Client');
80 $permission_ok =
false;
83 if($rbacsystem->checkAccess(
'read',$ref_id))
85 $permission_ok =
true;
92 return $this->
__raiseError(
'No permission to read the object with id: '.$ref_id,
97 if (!is_object($lm_obj) || $lm_obj->getType()!=
"sahs")
99 return $this->
__raiseError(
'Wrong obj id or type for scorm object with id '.$ref_id,
103 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
104 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResource.php");
106 $imsFilename = $lm_obj->getDataDirectory().DIRECTORY_SEPARATOR.
"imsmanifest.xml";
108 if (!file_exists($imsFilename)) {
109 return $this->
__raiseError(
'Could not find manifest file for object with ref id '.$ref_id,
113 return file_get_contents($imsFilename);
127 return $this->
__raiseError(
'No ref id given. Aborting!',
130 global $rbacsystem, $tree,
$ilLog;
141 return $this->
__raiseError(
"Parent with ID $ref_id has been deleted.",
'Client');
145 include_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php");
161 if(!strlen($a_ref_id))
163 return $this->
__raiseError(
'No ref_id given. Aborting!',
'Client');
166 include_once
'include/inc.header.php';
171 return $this->
__raiseError(
'No scorm module found for id: '.$a_ref_id,
175 include_once
'Services/Tracking/classes/class.ilLPStatusWrapper.php';
176 include_once
'Services/Tracking/classes/class.ilObjUserTracking.php';
180 return $this->
__raiseError(
'Learning progress not enabled in this installation. Aborting!',
'Server');
186 if(in_array($a_usr_id, $completed))
190 else if(in_array($a_usr_id, $failed))
194 else if(in_array($a_usr_id, $in_progress))
196 return 'in_progress';
200 return 'not_attempted';