51 $this->
ilias = $ilias;
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',
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',
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");
__construct($a_id=0)
Constructor.
create()
Create database record for SCORM object.
static _lookupPresentableItems($a_slm_id)
Count number of presentable SCOs/Assets of SCORM learning module.
Parent object for all SCORM objects, that are stored in table scorm_object.
redirection script todo: (a better solution should control the processing via a xml file) ...
Create styles array
The data for the language used.
update()
Updates database record for SCORM object.
& _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class