24 require_once
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php";
49 echo
"error_txt=Successful\n";
55 return $ilUser->getId();
60 return $ilUser->getFullname();
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))
98 $user_id = $ilUser->getId();
100 $set = $ilDB->queryF(
'
101 SELECT * FROM scorm_tracking
105 array(
'integer',
'integer',
'integer'),
106 array($user_id, $this->obj_id,$slm_id));
108 while ($rec = $ilDB->fetchAssoc($set))
111 $value=$rec[
"rvalue"];
112 $arr=explode(
".",
$key);
117 $data[$arr[0]]=$value;
118 else if (count($arr)==2)
119 $data[$arr[0]][$arr[1]]=$value;
123 foreach (
$data as $block=>$paar) {
125 if (!is_array($paar)) {
126 $paar=str_replace(
"<CR>",
"\n", $paar);
127 $paar=str_replace(
"<cr>",
"\n", $paar);
132 foreach ($paar as
$key=>$value)
133 echo
"$key=$value\n";