5 require_once(
"./Modules/ScormAicc/classes/AICC/class.ilAICCObject.php");
41 parent::__construct($a_id);
52 $this->course_creator = $a_course_creator;
62 $this->course_id = $a_course_id;
72 $this->course_system = $a_course_system;
82 $this->course_title = $a_course_title;
92 $this->level = $a_level;
102 if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
103 $this->max_fields_cst = $a_max_fields_cst;
113 if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
114 $this->max_fields_ort = $a_max_fields_ort;
124 $this->total_aus = $a_total_aus;
135 $this->total_blocks = $a_total_blocks;
145 if($a_total_complex_obj == NULL) $a_total_complex_obj=0;
146 $this->total_complex_obj = $a_total_complex_obj;
156 $this->total_objectives = $a_total_objectives;
166 $this->version = $a_version;
176 $this->max_normal = $a_max_normal;
186 $this->description = $a_description;
195 $obj_set = $ilDB->queryF(
'SELECT * FROM aicc_course WHERE obj_id = %s',
198 while($obj_rec = $ilDB->fetchAssoc($obj_set))
204 $this->
setLevel($obj_rec[
"c_level"]);
223 $ilDB->insert(
'aicc_course',
array(
248 $ilDB->update(
'aicc_course',
277 $statement = $ilDB->manipulateF(
278 'DELETE FROM aicc_course WHERE obj_id = %s',
283 $statement = $ilDB->manipulateF(
' 284 DELETE FROM scorm_tracking 287 array(
'integer',
'integer'),
292 include_once(
"./Services/Tracking/classes/class.ilLPStatusWrapper.php");
308 $a_user_id = $ilUser->getId();
311 $track_set = $ilDB->queryF(
' 312 SELECT lvalue, rvalue FROM scorm_tracking 316 array(
'integer',
'integer',
'integer'),
320 while ($track_rec = $ilDB->fetchAssoc($track_set))
322 $trdata[$track_rec[
"lvalue"]] = $track_rec[
"rvalue"];
330 require_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");
setTotalObjectives($a_total_objectives)
Parent object for all AICC objects, that are stored in table aicc_object.
setCourseSystem($a_course_system)
setCourseId($a_course_id)
setTotalBlocks($a_total_blocks)
setTotalAUs($a_total_aus)
setCourseTitle($a_course_title)
static _refreshStatus($a_obj_id, $a_users=null)
Set dirty.
__construct($a_id=0)
Constructor.
insertTrackData($a_lval, $a_rval, $a_obj_id)
setMaxNormal($a_max_normal)
setMaxFieldsOrt($a_max_fields_ort)
$course_creator
AICC Item.
setDescription($a_description)
setTotalComplexObj($a_total_complex_obj)
getTrackingDataOfUser($a_user_id=0)
get tracking data of specified or current user
Create styles array
The data for the language used.
setMaxFieldsCst($a_max_fields_cst)
static _insertTrackData($a_sahs_id, $a_lval, $a_rval, $a_obj_id)
setCourseCreator($a_course_creator)