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 $string = addslashes($string);
140 $obj_set =
$ilDB->queryF(
'SELECT * FROM aicc_object WHERE obj_id = %s',
141 array(
'integer'),array($this->
getId()));
142 while($obj_rec =
$ilDB->fetchAssoc($obj_set))
145 $this->
setType($obj_rec[
"c_type"]);
146 $this->
setALMId($obj_rec[
"alm_id"]);
157 $nextId =
$ilDB->nextId(
'aicc_object');
159 $ilDB->insert(
'aicc_object', array(
160 'obj_id' => array(
'integer', $nextId),
161 'title' => array(
'text', $this->
getTitle()),
162 'c_type' => array(
'text', $this->
getType()),
163 'slm_id' => array(
'integer', $this->
getALMId()),
166 'system_id' => array(
'integer', $this->
getSystemId())
169 $this->
setId($nextId);
176 $ilDB->update(
'aicc_object',
178 'title' => array(
'text', $this->
getTitle()),
179 'c_type' => array(
'text', $this->
getType()),
180 'slm_id' => array(
'integer', $this->
getALMId()),
183 'system_id' => array(
'integer', $this->
getSystemId())
186 'obj_id' => array(
'integer', $this->
getId())
195 $statement =
$ilDB->manipulateF(
'DELETE FROM aicc_object WHERE obj_id = %s',
196 array(
'integer'),array($this->
getId()));
208 $sc_set =
$ilDB->queryF(
'
209 SELECT c_type FROM aicc_object
212 array(
'integer',
'integer'),
213 array($a_id,$a_slm_id)
216 while($sc_rec =
$ilDB->fetchAssoc($sc_set))
221 switch($sc_rec[
"c_type"])
224 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCBlock.php");
230 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCUnit.php");
236 include_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCCourse.php");
An exception for terminatinating execution or to throw for unit testing.
Parent object for all AICC objects, that are stored in table aicc_object.
__construct($a_id=0)
Constructor.
setSystemId($a_system_id)
& _getInstance($a_id, $a_slm_id)
get instance of specialized GUI class
setDeveloperId($a_developer_id)
setDescription($a_description)
redirection script todo: (a better solution should control the processing via a xml file)