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 $q =
"SELECT * FROM aicc_object WHERE obj_id = ".$ilDB->quote($this->
getId());
144 $obj_set = $this->ilias->db->query($q);
147 $this->
setType($obj_rec[
"type"]);
148 $this->
setALMId($obj_rec[
"alm_id"]);
158 $q =
"INSERT INTO aicc_object (title, type, slm_id, description, developer_id, system_id) VALUES (";
159 $q.=$ilDB->quote($this->
getTitle()).
", ";
160 $q.=$ilDB->quote($this->
getType()).
", ";
161 $q.=$ilDB->quote($this->
getALMId()).
", ";
165 $this->ilias->db->query($q);
166 $this->
setId($this->ilias->db->getLastInsertId());
173 $q =
"UPDATE aicc_object SET ";
174 $q.=
"title = ".$ilDB->quote($this->
getTitle()).
", ";
175 $q.=
"type = ".$ilDB->quote($this->
getType()).
", ";
176 $q.=
"slm_id = ".$ilDB->quote($this->
getALMId()).
", ";
179 $q.=
"system_id = ".$ilDB->quote($this->
getSystemId()).
" ";
180 $q.=
"WHERE obj_id = ".$ilDB->quote($this->
getId());
182 $this->ilias->db->query($q);
189 $q =
"DELETE FROM aicc_object WHERE obj_id =".$ilDB->quote($this->
getId());
202 $sc_set = $ilDB->query(
"SELECT type FROM aicc_object WHERE obj_id =".$ilDB->quote($a_id).
203 " AND slm_id = ".$ilDB->quote($a_slm_id));
206 switch($sc_rec[
"type"])
209 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCBlock.php");
215 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php");
221 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCCourse.php");