33include_once 
'./webservice/soap/classes/class.ilSoapAdministration.php';
 
   52                if(!$this->__checkSession($sid))
 
   61                global $rbacsystem, $tree, 
$ilLog;
 
   72                        return $this->
__raiseError(
"Parent with ID $ref_id has been deleted.", 
'Client');
 
   76                $permission_ok = 
false;
 
   79                        if($rbacsystem->checkAccess(
'read',
$ref_id))
 
   81                                $permission_ok = 
true;
 
   88                        return $this->
__raiseError(
'No permission to read the object with id: '.$ref_id,
 
   93                if (!is_object($lm_obj) || $lm_obj->getType()!= 
"sahs")
 
   95                        return $this->
__raiseError(
'Wrong obj id or type for scorm object with id '.$ref_id,
 
   99                require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMObject.php");
 
  100                require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResource.php");
 
  102                $imsFilename = $lm_obj->getDataDirectory().DIRECTORY_SEPARATOR.
"imsmanifest.xml";
 
  104                if (!file_exists($imsFilename)) {
 
  105                        return $this->
__raiseError(
'Could not find manifest file for object with ref id '.$ref_id,
 
  109                return file_get_contents($imsFilename);
 
  117                if(!$this->__checkSession($sid))
 
  123                        return $this->
__raiseError(
'No ref id given. Aborting!',
 
  126                global $rbacsystem, $tree, 
$ilLog;
 
  137                        return $this->
__raiseError(
"Parent with ID $ref_id has been deleted.", 
'Client');
 
  141                include_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModuleAccess.php");
 
  152                if(!$this->__checkSession($sid))
 
  157                if(!strlen($a_ref_id))
 
  159                        return $this->
__raiseError(
'No ref_id given. Aborting!', 
'Client');
 
  162                include_once 
'include/inc.header.php';
 
  167                        return $this->
__raiseError(
'No scorm module found for id: '.$a_ref_id,
 
  171                include_once 
'Services/Tracking/classes/class.ilLPStatus.php';          
 
  172                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  176                        return $this->
__raiseError(
'Learning progress not enabled in this installation. Aborting!', 
'Server');
 
  190                        return 'in_progress';
 
  194                        return 'not_attempted';
 
An exception for terminatinating execution or to throw for unit testing.
const LP_STATUS_COMPLETED_NUM
static _lookupStatus($a_obj_id, $a_user_id, $a_create=true)
Lookup status.
const LP_STATUS_IN_PROGRESS_NUM
const LP_STATUS_FAILED_NUM
static _lookupUserCertificate($obj_id, $usr_id=0)
Checks whether a certificate exists for the active user or not.
static _enabledLearningProgress()
check wether learing progress is enabled or not
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupObjectId($a_ref_id)
lookup object id
static _getAllReferences($a_id)
get all reference ids of object
static _isInTrash($a_ref_id)
checks wether object is in trash
initAuth($sid)
Init authentication.
__raiseError($a_message, $a_code)
hasSCORMCertificate($sid, $ref_id, $usr_id)
getIMSManifestXML($sid, $ref_id)
get ims manifest xml
getSCORMCompletionStatus($sid, $a_usr_id, $a_ref_id)