24 require_once
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php";
49 echo
"error_txt=Successful\n";
55 return $ilUser->getId();
60 return $ilUser->getFullname();
64 global $ilUser, $ilDB,
$ilLog;
67 echo
"error_txt=Successful\n";
73 $data[
"core"][
"time"]=
"00:00:00";
75 $data[
"core_vendor"]=$this->unit->getCoreVendor();
77 $data[
"student_data"][
"mastery_score"]=$this->unit->getMasteryScore();
78 $data[
"student_data"][
"max_time_allowed"]=$this->unit->getMaxTimeAllowed();
79 $data[
"student_data"][
"time_limit_action"]=$this->unit->getTimeLimitAction();
81 $data[
"student_preferences"][
"audio"]=
"-1";
82 $data[
"student_preferences"][
"text"]=
"1";
84 $data[
"core_lesson"]=
"";
85 $data[
"core"][
"output_file"]=
"";
86 $data[
"core"][
"credit"]=
"c";
87 $data[
"core"][
"lesson_location"]=
"";
88 $data[
"core"][
"lesson_status"]=
"n,a";
89 $data[
"core"][
"path"]=
"";
90 $data[
"core"][
"score"]=
"";
96 if (is_object($ilUser)) {
97 $user_id = $ilUser->getId();
98 $stmt =
"SELECT * FROM scorm_tracking WHERE user_id = ".$ilDB->quote($user_id).
99 " AND sco_id = ".$ilDB->quote($this->obj_id).
100 " AND obj_id = ".$ilDB->quote($slm_id);
102 $set = $ilDB->query($stmt);
106 $value=$rec[
"rvalue"];
107 $arr=explode(
".", $key);
112 $data[$arr[0]]=$value;
113 else if (count($arr)==2)
114 $data[$arr[0]][$arr[1]]=$value;
118 foreach (
$data as $block=>$paar) {
120 if (!is_array($paar)) {
121 $paar=str_replace(
"<CR>",
"\n", $paar);
122 $paar=str_replace(
"<cr>",
"\n", $paar);
127 foreach ($paar as $key=>$value)
128 echo
"$key=$value\n";