53 $this->ilias =& $ilias;
78 $this->objType = $a_objType;
88 $this->title = $a_title;
98 $this->description = $a_description;
108 $this->developer_id = $a_developer_id;
118 $this->system_id = $a_system_id;
128 $this->alm_id = $a_alm_id;
132 if (!get_magic_quotes_runtime()) {
133 $string = addslashes($string);
142 $obj_set = $ilDB->queryF(
'SELECT * FROM aicc_object WHERE obj_id = %s',
143 array(
'integer'),array($this->
getId()));
144 while($obj_rec = $ilDB->fetchAssoc($obj_set))
147 $this->
setType($obj_rec[
"c_type"]);
148 $this->
setALMId($obj_rec[
"alm_id"]);
159 $nextId = $ilDB->nextId(
'aicc_object');
161 $ilDB->insert(
'aicc_object', array(
162 'obj_id' => array(
'integer', $nextId),
163 'title' => array(
'text', $this->
getTitle()),
164 'c_type' => array(
'text', $this->
getType()),
165 'slm_id' => array(
'integer', $this->
getALMId()),
168 'system_id' => array(
'integer', $this->
getSystemId())
171 $this->
setId($nextId);
178 $ilDB->update(
'aicc_object',
180 'title' => array(
'text', $this->
getTitle()),
181 'c_type' => array(
'text', $this->
getType()),
182 'slm_id' => array(
'integer', $this->
getALMId()),
185 'system_id' => array(
'integer', $this->
getSystemId())
188 'obj_id' => array(
'integer', $this->
getId())
197 $statement = $ilDB->manipulateF(
'DELETE FROM aicc_object WHERE obj_id = %s',
198 array(
'integer'),array($this->
getId()));
210 $sc_set = $ilDB->queryF(
'
211 SELECT c_type FROM aicc_object
214 array(
'integer',
'integer'),
215 array($a_id,$a_slm_id)
218 while($sc_rec = $ilDB->fetchAssoc($sc_set))
223 switch($sc_rec[
"c_type"])
226 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCBlock.php");
232 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php");
238 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCCourse.php");