33include_once 
'./webservice/soap/classes/class.ilSoapAdministration.php';
 
   39                parent::ilSoapAdministration();
 
   56                if(!$this->__checkSession($sid))
 
   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);
 
  121                if(!$this->__checkSession($sid))
 
  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");
 
  156                if(!$this->__checkSession($sid))
 
  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.ilLPStatus.php';          
 
  176                include_once 
'Services/Tracking/classes/class.ilObjUserTracking.php';
 
  180                        return $this->
__raiseError(
'Learning progress not enabled in this installation. Aborting!', 
'Server');
 
  194                        return 'in_progress';
 
  198                        return 'not_attempted';
 
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
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
_isInTrash($a_ref_id)
checks wether object is in trash
static _lookupObjectId($a_ref_id)
lookup object id
static _getAllReferences($a_id)
get all reference ids of object
__raiseError($a_message, $a_code)
hasSCORMCertificate($sid, $ref_id, $usr_id)
ilSoapExerciseAdministration()
getIMSManifestXML($sid, $ref_id)
get ims manifest xml
getSCORMCompletionStatus($sid, $a_usr_id, $a_ref_id)