50 $ilias = $DIC[
'ilias'];
52 $this->
ilias = $ilias;
86 $this->title = $a_title;
96 $this->slm_id = $a_slm_id;
102 $ilDB = $DIC[
'ilDB'];
104 $obj_set =
$ilDB->queryF(
105 'SELECT * FROM scorm_object WHERE obj_id = %s',
107 array($this->
getId())
109 $obj_rec =
$ilDB->fetchAssoc($obj_set);
111 $this->
setType($obj_rec[
"c_type"]);
112 $this->
setSLMId($obj_rec[
"slm_id"]);
121 $ilDB = $DIC[
'ilDB'];
123 $set =
$ilDB->queryF(
126 FROM scorm_object sob, sc_item sit 127 WHERE sob.slm_id = %s 128 AND sob.obj_id = sit.obj_id 129 AND sit.identifierref IS NOT NULL",
134 while ($rec =
$ilDB->fetchAssoc($set)) {
135 $items[] = $rec[
"id"];
148 $ilDB = $DIC[
'ilDB'];
150 $nextId =
$ilDB->nextId(
'scorm_object');
151 $this->
setId($nextId);
155 INSERT INTO scorm_object (obj_id,title, c_type, slm_id) 156 VALUES (%s,%s,%s,%s) ',
157 array(
'integer',
'text',
'text',
'integer'),
169 $ilDB = $DIC[
'ilDB'];
178 array(
'text',
'text',
'integer',
'integer'),
183 public function delete()
186 $ilDB = $DIC[
'ilDB'];
188 'DELETE FROM scorm_object WHERE obj_id = %s',
190 array($this->
getId())
202 $ilDB = $DIC[
'ilDB'];
204 $sc_set =
$ilDB->queryF(
206 SELECT c_type FROM scorm_object 209 array(
'integer',
'integer'),
210 array($a_id, $a_slm_id)
212 $sc_rec =
$ilDB->fetchAssoc($sc_set);
214 switch ($sc_rec[
"c_type"]) {
216 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php");
222 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMOrganizations.php");
228 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMOrganization.php");
234 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMManifest.php");
240 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilSCORMResources.php");
246 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) ...
update()
Updates database record for SCORM object.
static & _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class