Definition at line 5 of file class.ilAICCCourse.php.
ilAICCCourse::create | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 209 of file class.ilAICCCourse.php.
References $q, getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().
{ parent::create(); $q = "INSERT INTO aicc_course (obj_id, course_creator, course_id, course_system, course_title, level, max_fields_cst, max_fields_ort, total_aus, total_blocks, total_complex_obj, total_objectives, version, max_normal, description) VALUES ("; $q.="'".$this->getId()."', "; $q.="'".$this->prepForStore($this->getCourseCreator())."', "; $q.="'".$this->prepForStore($this->getCourseId())."', "; $q.="'".$this->prepForStore($this->getCourseSystem())."', "; $q.="'".$this->prepForStore($this->getCourseTitle())."', "; $q.="'".$this->prepForStore($this->getLevel())."', "; $q.="'".$this->prepForStore($this->getMaxFieldsCst())."', "; $q.="'".$this->prepForStore($this->getMaxFieldsOrt())."', "; $q.="'".$this->prepForStore($this->getTotalAUs())."', "; $q.="'".$this->prepForStore($this->getTotalBlocks())."', "; $q.="'".$this->prepForStore($this->getTotalComplexObj())."', "; $q.="'".$this->prepForStore($this->getTotalObjectives())."', "; $q.="'".$this->prepForStore($this->getVersion())."', "; $q.="'".$this->prepForStore($this->getMaxNormal())."', "; $q.="'".$this->prepForStore($this->getDescription())."')"; $this->ilias->db->query($q); }
ilAICCCourse::delete | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 258 of file class.ilAICCCourse.php.
References $q, and ilAICCObject::getId().
{ global $ilDB; parent::delete(); $q = "DELETE FROM aicc_course WHERE obj_id =".$ilDB->quote($this->getId()); $ilDB->query($q); $q = "DELETE FROM scorm_tracking WHERE ". "sco_id = ".$ilDB->quote($this->getId()); $ilDB->query($q); }
ilAICCCourse::getCourseCreator | ( | ) |
Definition at line 45 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->course_creator;
}
ilAICCCourse::getCourseId | ( | ) |
Definition at line 55 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->course_id;
}
ilAICCCourse::getCourseSystem | ( | ) |
Definition at line 65 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->course_system;
}
ilAICCCourse::getCourseTitle | ( | ) |
Definition at line 75 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->course_title;
}
ilAICCCourse::getDescription | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 175 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->description;
}
ilAICCCourse::getLevel | ( | ) |
Definition at line 85 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->level;
}
ilAICCCourse::getMaxFieldsCst | ( | ) |
Definition at line 95 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->max_fields_cst;
}
ilAICCCourse::getMaxFieldsOrt | ( | ) |
Definition at line 105 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->max_fields_ort;
}
ilAICCCourse::getMaxNormal | ( | ) |
Definition at line 165 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->max_normal;
}
ilAICCCourse::getTotalAUs | ( | ) |
Definition at line 115 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->total_aus;
}
ilAICCCourse::getTotalBlocks | ( | ) |
Definition at line 125 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->total_blocks;
}
ilAICCCourse::getTotalComplexObj | ( | ) |
Definition at line 135 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->total_complex_obj;
}
ilAICCCourse::getTotalObjectives | ( | ) |
Definition at line 145 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->total_objectives;
}
ilAICCCourse::getTrackingDataOfUser | ( | $ | a_user_id = 0 |
) |
get tracking data of specified or current user
Definition at line 278 of file class.ilAICCCourse.php.
References $q.
{ global $ilDB, $ilUser; if ($a_user_id == 0) { $a_user_id = $ilUser->getId(); } $q = "SELECT * FROM scorm_tracking WHERE ". "sco_id = '".$this->getId()."' AND ". "user_id = '".$a_user_id."'"; $track_set = $ilDB->query($q); $trdata = array(); while ($track_rec = $track_set->fetchRow(DB_FETCHMODE_ASSOC)) { $trdata[$track_rec["lvalue"]] = $track_rec["rvalue"]; } return $trdata; }
ilAICCCourse::getVersion | ( | ) |
Definition at line 155 of file class.ilAICCCourse.php.
Referenced by create(), and update().
{
return $this->version;
}
ilAICCCourse::ilAICCCourse | ( | $ | a_id = 0 |
) |
Constructor.
int | $a_id Object ID public |
Definition at line 39 of file class.ilAICCCourse.php.
References ilAICCObject::ilAICCObject(), and ilAICCObject::setType().
{ parent::ilAICCObject($a_id); $this->setType("shd"); }
ilAICCCourse::insertTrackData | ( | $ | a_lval, | |
$ | a_rval, | |||
$ | a_obj_id | |||
) |
Definition at line 301 of file class.ilAICCCourse.php.
References ilObjSCORMTracking::_insertTrackData(), and ilAICCObject::getId().
{ require_once("content/classes/SCORM/class.ilObjSCORMTracking.php"); ilObjSCORMTracking::_insertTrackData($this->getId(), $a_lval, $a_rval, $a_obj_id); }
ilAICCCourse::read | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 185 of file class.ilAICCCourse.php.
References $q, setCourseCreator(), setCourseId(), setCourseSystem(), setCourseTitle(), setDescription(), setLevel(), setMaxFieldsCst(), setMaxFieldsOrt(), setMaxNormal(), setTotalAUs(), setTotalBlocks(), setTotalComplexObj(), setTotalObjectives(), and setVersion().
{ parent::read(); $q = "SELECT * FROM aicc_course WHERE obj_id = '".$this->getId()."'"; $obj_set = $this->ilias->db->query($q); $obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC); $this->setCourseCreator($obj_rec["course_creator"]); $this->setCourseId($obj_rec["course_id"]); $this->setCourseSystem($obj_rec["course_system"]); $this->setCourseTitle($obj_rec["course_title"]); $this->setLevel($obj_rec["level"]); $this->setMaxFieldsCst($obj_rec["max_fields_cst"]); $this->setMaxFieldsOrt($obj_rec["max_fields_ort"]); $this->setTotalAUs($obj_rec["total_aus"]); $this->setTotalBlocks($obj_rec["total_blocks"]); $this->setTotalComplexObj($obj_rec["total_complex_obj"]); $this->setTotalObjectives($obj_rec["total_objectives"]); $this->setVersion($obj_rec["_version"]); $this->setMaxNormal($obj_rec["max_normal"]); $this->setDescription($obj_rec["description"]); }
ilAICCCourse::setCourseCreator | ( | $ | a_course_creator | ) |
Definition at line 50 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->course_creator = $a_course_creator; }
ilAICCCourse::setCourseId | ( | $ | a_course_id | ) |
Definition at line 60 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->course_id = $a_course_id; }
ilAICCCourse::setCourseSystem | ( | $ | a_course_system | ) |
Definition at line 70 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->course_system = $a_course_system; }
ilAICCCourse::setCourseTitle | ( | $ | a_course_title | ) |
Definition at line 80 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->course_title = $a_course_title; }
ilAICCCourse::setDescription | ( | $ | a_description | ) |
Reimplemented from ilAICCObject.
Definition at line 180 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->description = $a_description; }
ilAICCCourse::setLevel | ( | $ | a_level | ) |
Definition at line 90 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->level = $a_level; }
ilAICCCourse::setMaxFieldsCst | ( | $ | a_max_fields_cst | ) |
Definition at line 100 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->max_fields_cst = $a_max_fields_cst; }
ilAICCCourse::setMaxFieldsOrt | ( | $ | a_max_fields_ort | ) |
Definition at line 110 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->max_fields_ort = $a_max_fields_ort; }
ilAICCCourse::setMaxNormal | ( | $ | a_max_normal | ) |
Definition at line 170 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->max_normal = $a_max_normal; }
ilAICCCourse::setTotalAUs | ( | $ | a_total_aus | ) |
Definition at line 120 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->total_aus = $a_total_aus; }
ilAICCCourse::setTotalBlocks | ( | $ | a_total_blocks | ) |
Definition at line 130 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->total_blocks = $a_total_blocks; }
ilAICCCourse::setTotalComplexObj | ( | $ | a_total_complex_obj | ) |
Definition at line 140 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->total_complex_obj = $a_total_complex_obj; }
ilAICCCourse::setTotalObjectives | ( | $ | a_total_objectives | ) |
Definition at line 150 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->total_objectives = $a_total_objectives; }
ilAICCCourse::setVersion | ( | $ | a_version | ) |
Definition at line 160 of file class.ilAICCCourse.php.
Referenced by read().
{ $this->version = $a_version; }
ilAICCCourse::update | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 235 of file class.ilAICCCourse.php.
References $q, getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().
{ parent::update(); $q = "UPDATE aicc_course SET "; $q.="course_creator='".$this->prepForStore($this->getCourseCreator())."', "; $q.="course_id='".$this->prepForStore($this->getCourseId())."', "; $q.="course_system='".$this->prepForStore($this->getCourseSystem())."', "; $q.="course_title='".$this->prepForStore($this->getCourseTitle())."', "; $q.="level='".$this->prepForStore($this->getLevel())."', "; $q.="max_fields_cst='".$this->prepForStore($this->getMaxFieldsCst())."', "; $q.="max_fields_ort='".$this->prepForStore($this->getMaxFieldsOrt())."', "; $q.="total_aus='".$this->prepForStore($this->getTotalAUs())."', "; $q.="total_blocks='".$this->prepForStore($this->getTotalBlocks())."', "; $q.="total_complex_obj='".$this->prepForStore($this->getTotalComplexObj())."', "; $q.="total_objectives='".$this->prepForStore($this->getTotalObjectives())."', "; $q.="version='".$this->prepForStore($this->getVersion())."', "; $q.="max_normal='".$this->prepForStore($this->getMaxNormal())."', "; $q.="description='".$this->prepForStore($this->getDescription())."' "; $q.="WHERE obj_id = '".$this->getId()."'"; $this->ilias->db->query($q); }
ilAICCCourse::$course_creator |
Definition at line 18 of file class.ilAICCCourse.php.
ilAICCCourse::$course_id |
Definition at line 19 of file class.ilAICCCourse.php.
ilAICCCourse::$course_system |
Definition at line 20 of file class.ilAICCCourse.php.
ilAICCCourse::$course_title |
Definition at line 21 of file class.ilAICCCourse.php.
ilAICCCourse::$description |
Reimplemented from ilAICCObject.
Definition at line 31 of file class.ilAICCCourse.php.
ilAICCCourse::$level |
Definition at line 22 of file class.ilAICCCourse.php.
ilAICCCourse::$max_fields_cst |
Definition at line 23 of file class.ilAICCCourse.php.
ilAICCCourse::$max_fields_ort |
Definition at line 24 of file class.ilAICCCourse.php.
ilAICCCourse::$max_normal |
Definition at line 30 of file class.ilAICCCourse.php.
ilAICCCourse::$total_aus |
Definition at line 25 of file class.ilAICCCourse.php.
ilAICCCourse::$total_blocks |
Definition at line 26 of file class.ilAICCCourse.php.
ilAICCCourse::$total_complex_obj |
Definition at line 27 of file class.ilAICCCourse.php.
ilAICCCourse::$total_objectives |
Definition at line 28 of file class.ilAICCCourse.php.
ilAICCCourse::$version |
Definition at line 29 of file class.ilAICCCourse.php.