51 $this->ilias =& $ilias;
76 $this->type = $a_type;
86 $this->title = $a_title;
96 $this->slm_id = $a_slm_id;
103 $obj_set = $ilDB->queryF(
'SELECT * FROM scorm_object WHERE obj_id = %s',
104 array(
'integer'),array($this->
getId()));
105 $obj_rec = $ilDB->fetchAssoc($obj_set);
107 $this->
setType($obj_rec[
"c_type"]);
108 $this->
setSLMId($obj_rec[
"slm_id"]);
118 $set = $ilDB->queryF(
"
120 FROM scorm_object sob, sc_item sit
121 WHERE sob.slm_id = %s
122 AND sob.obj_id = sit.obj_id
123 AND sit.identifierref IS NOT NULL",
128 while ($rec = $ilDB->fetchAssoc($set))
130 $items[] = $rec[
"id"];
144 $nextId = $ilDB->nextId(
'scorm_object');
145 $this->
setId($nextId);
148 INSERT INTO scorm_object (obj_id,title, c_type, slm_id)
149 VALUES (%s,%s,%s,%s) ',
150 array(
'integer',
'text',
'text',
'integer'),
170 array(
'text',
'text',
'integer',
'integer'),
179 $ilDB->manipulateF(
'DELETE FROM scorm_object WHERE obj_id = %s',
180 array(
'integer'),array($this->
getId()) );
193 $sc_set = $ilDB->queryF(
'
194 SELECT c_type FROM scorm_object
197 array(
'integer',
'integer'),
198 array($a_id, $a_slm_id)
200 $sc_rec = $ilDB->fetchAssoc($sc_set);
202 switch($sc_rec[
"c_type"])
205 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php");
211 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMOrganizations.php");
217 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMOrganization.php");
223 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMManifest.php");
229 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResources.php");
235 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResource.php");