Public Member Functions | Data Fields

ilAICCCourse Class Reference

Inheritance diagram for ilAICCCourse:
Collaboration diagram for ilAICCCourse:

Public Member Functions

 ilAICCCourse ($a_id=0)
 Constructor.
 getCourseCreator ()
 setCourseCreator ($a_course_creator)
 getCourseId ()
 setCourseId ($a_course_id)
 getCourseSystem ()
 setCourseSystem ($a_course_system)
 getCourseTitle ()
 setCourseTitle ($a_course_title)
 getLevel ()
 setLevel ($a_level)
 getMaxFieldsCst ()
 setMaxFieldsCst ($a_max_fields_cst)
 getMaxFieldsOrt ()
 setMaxFieldsOrt ($a_max_fields_ort)
 getTotalAUs ()
 setTotalAUs ($a_total_aus)
 getTotalBlocks ()
 setTotalBlocks ($a_total_blocks)
 getTotalComplexObj ()
 setTotalComplexObj ($a_total_complex_obj)
 getTotalObjectives ()
 setTotalObjectives ($a_total_objectives)
 getVersion ()
 setVersion ($a_version)
 getMaxNormal ()
 setMaxNormal ($a_max_normal)
 getDescription ()
 setDescription ($a_description)
 read ()
 create ()
 update ()
 delete ()
 getTrackingDataOfUser ($a_user_id=0)
 get tracking data of specified or current user
 insertTrackData ($a_lval, $a_rval, $a_obj_id)

Data Fields

 $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

Detailed Description

Definition at line 5 of file class.ilAICCCourse.php.


Member Function Documentation

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);
        }

Here is the call graph for this function:

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);

        }

Here is the call graph for this function:

ilAICCCourse::getCourseCreator (  ) 

Definition at line 45 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->course_creator;
        }

Here is the caller graph for this function:

ilAICCCourse::getCourseId (  ) 

Definition at line 55 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->course_id;
        }

Here is the caller graph for this function:

ilAICCCourse::getCourseSystem (  ) 

Definition at line 65 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->course_system;
        }

Here is the caller graph for this function:

ilAICCCourse::getCourseTitle (  ) 

Definition at line 75 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->course_title;
        }

Here is the caller graph for this function:

ilAICCCourse::getDescription (  ) 

Reimplemented from ilAICCObject.

Definition at line 175 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->description;
        }

Here is the caller graph for this function:

ilAICCCourse::getLevel (  ) 

Definition at line 85 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->level;
        }

Here is the caller graph for this function:

ilAICCCourse::getMaxFieldsCst (  ) 

Definition at line 95 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->max_fields_cst;
        }

Here is the caller graph for this function:

ilAICCCourse::getMaxFieldsOrt (  ) 

Definition at line 105 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->max_fields_ort;
        }

Here is the caller graph for this function:

ilAICCCourse::getMaxNormal (  ) 

Definition at line 165 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->max_normal;
        }

Here is the caller graph for this function:

ilAICCCourse::getTotalAUs (  ) 

Definition at line 115 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->total_aus;
        }

Here is the caller graph for this function:

ilAICCCourse::getTotalBlocks (  ) 

Definition at line 125 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->total_blocks;
        }

Here is the caller graph for this function:

ilAICCCourse::getTotalComplexObj (  ) 

Definition at line 135 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->total_complex_obj;
        }

Here is the caller graph for this function:

ilAICCCourse::getTotalObjectives (  ) 

Definition at line 145 of file class.ilAICCCourse.php.

Referenced by create(), and update().

        {
                return $this->total_objectives;
        }

Here is the caller graph for this function:

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;
        }

Here is the caller graph for this function:

ilAICCCourse::ilAICCCourse ( a_id = 0  ) 

Constructor.

Parameters:
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");
        }

Here is the call graph for this function:

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);
        }

Here is the call graph for this function:

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"]);
        }

Here is the call graph for this function:

ilAICCCourse::setCourseCreator ( a_course_creator  ) 

Definition at line 50 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->course_creator = $a_course_creator;
        }

Here is the caller graph for this function:

ilAICCCourse::setCourseId ( a_course_id  ) 

Definition at line 60 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->course_id = $a_course_id;
        }

Here is the caller graph for this function:

ilAICCCourse::setCourseSystem ( a_course_system  ) 

Definition at line 70 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->course_system = $a_course_system;
        }

Here is the caller graph for this function:

ilAICCCourse::setCourseTitle ( a_course_title  ) 

Definition at line 80 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->course_title = $a_course_title;
        }

Here is the caller graph for this function:

ilAICCCourse::setDescription ( a_description  ) 

Reimplemented from ilAICCObject.

Definition at line 180 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->description = $a_description;
        }

Here is the caller graph for this function:

ilAICCCourse::setLevel ( a_level  ) 

Definition at line 90 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->level = $a_level;
        }

Here is the caller graph for this function:

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;
        }

Here is the caller graph for this function:

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;
        }

Here is the caller graph for this function:

ilAICCCourse::setMaxNormal ( a_max_normal  ) 

Definition at line 170 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->max_normal = $a_max_normal;
        }

Here is the caller graph for this function:

ilAICCCourse::setTotalAUs ( a_total_aus  ) 

Definition at line 120 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->total_aus = $a_total_aus;
        }

Here is the caller graph for this function:

ilAICCCourse::setTotalBlocks ( a_total_blocks  ) 

Definition at line 130 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->total_blocks = $a_total_blocks;
        }

Here is the caller graph for this function:

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;
        }

Here is the caller graph for this function:

ilAICCCourse::setTotalObjectives ( a_total_objectives  ) 

Definition at line 150 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->total_objectives = $a_total_objectives;
        }

Here is the caller graph for this function:

ilAICCCourse::setVersion ( a_version  ) 

Definition at line 160 of file class.ilAICCCourse.php.

Referenced by read().

        {
                $this->version = $a_version;
        }

Here is the caller graph for this function:

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);
        }

Here is the call graph for this function:


Field Documentation

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.


The documentation for this class was generated from the following file: