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
 AICC Item.
 $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 26 of file class.ilAICCCourse.php.


Member Function Documentation

ilAICCCourse::create (  ) 

Reimplemented from ilAICCObject.

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

References getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), ilAICCObject::getId(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().

        {
                global $ilDB;
                
                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.= $ilDB->quote($this->getId()).", ";
                $q.= $ilDB->quote($this->getCourseCreator()).", ";
                $q.= $ilDB->quote($this->getCourseId()).", ";
                $q.= $ilDB->quote($this->getCourseSystem()).", ";
                $q.= $ilDB->quote($this->getCourseTitle()).", ";
                $q.= $ilDB->quote($this->getLevel()).", ";
                $q.= $ilDB->quote($this->getMaxFieldsCst()).", ";
                $q.= $ilDB->quote($this->getMaxFieldsOrt()).", ";
                $q.= $ilDB->quote($this->getTotalAUs()).", ";
                $q.= $ilDB->quote($this->getTotalBlocks()).", ";
                $q.= $ilDB->quote($this->getTotalComplexObj()).", ";
                $q.= $ilDB->quote($this->getTotalObjectives()).", ";
                $q.= $ilDB->quote($this->getVersion()).", ";
                $q.= $ilDB->quote($this->getMaxNormal()).", ";
                $q.= $ilDB->quote($this->getDescription()).")";
                $this->ilias->db->query($q);
        }

Here is the call graph for this function:

ilAICCCourse::delete (  ) 

Reimplemented from ilAICCObject.

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

References $ilLog, ilAICCObject::getALMId(), and ilAICCObject::getId().

        {
                global $ilDB, $ilLog;

                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()).
                        " AND obj_id = ".$ilDB->quote($this->getALMId());
                $ilLog->write("SAHS Delete: ".$q);
                $ilDB->query($q);

        }

Here is the call graph for this function:

ilAICCCourse::getCourseCreator (  ) 

Definition at line 64 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 74 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 84 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 94 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 194 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 104 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 114 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 124 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 184 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 134 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 144 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 154 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 164 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 305 of file class.ilAICCCourse.php.

References ilAICCObject::getALMId(), and ilAICCObject::getId().

        {
                global $ilDB, $ilUser;

                if ($a_user_id == 0)
                {
                        $a_user_id = $ilUser->getId();
                }

                $q = "SELECT * FROM scorm_tracking WHERE ".
                        "sco_id = ".$ilDB->quote($this->getId())." AND ".
                        "user_id = ".$ilDB->quote($a_user_id).
                        " AND obj_id = ".$ilDB->quote($this->getALMId());

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

Here is the call graph for this function:

ilAICCCourse::getVersion (  ) 

Definition at line 174 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 58 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 329 of file class.ilAICCCourse.php.

References ilObjSCORMTracking::_insertTrackData(), and ilAICCObject::getId().

        {
                require_once("./Modules/ScormAicc/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 204 of file class.ilAICCCourse.php.

References ilAICCObject::getId(), setCourseCreator(), setCourseId(), setCourseSystem(), setCourseTitle(), setDescription(), setLevel(), setMaxFieldsCst(), setMaxFieldsOrt(), setMaxNormal(), setTotalAUs(), setTotalBlocks(), setTotalComplexObj(), setTotalObjectives(), and setVersion().

        {
                global $ilDB;
                
                parent::read();

                $q = "SELECT * FROM aicc_course WHERE obj_id = ".$ilDB->quote($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 69 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 79 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 89 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 99 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 199 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 109 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 119 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 129 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 189 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 139 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 149 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 159 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 169 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 179 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 258 of file class.ilAICCCourse.php.

References getCourseCreator(), getCourseId(), getCourseSystem(), getCourseTitle(), getDescription(), ilAICCObject::getId(), getLevel(), getMaxFieldsCst(), getMaxFieldsOrt(), getMaxNormal(), getTotalAUs(), getTotalBlocks(), getTotalComplexObj(), getTotalObjectives(), and getVersion().

        {
                global $ilDB;
                
                parent::update();
                
                $q = "UPDATE aicc_course SET ";
                $q.="course_creator=".$ilDB->quote($this->getCourseCreator()).", ";
                $q.="course_id=".$ilDB->quote($this->getCourseId()).", ";
                $q.="course_system=".$ilDB->quote($this->getCourseSystem()).", ";
                $q.="course_title=".$ilDB->quote($this->getCourseTitle()).", ";
                $q.="level=".$ilDB->quote($this->getLevel()).", ";
                $q.="max_fields_cst=".$ilDB->quote($this->getMaxFieldsCst()).", ";
                $q.="max_fields_ort=".$ilDB->quote($this->getMaxFieldsOrt()).", ";
                $q.="total_aus=".$ilDB->quote($this->getTotalAUs()).", ";
                $q.="total_blocks=".$ilDB->quote($this->getTotalBlocks()).", ";
                $q.="total_complex_obj=".$ilDB->quote($this->getTotalComplexObj()).", ";
                $q.="total_objectives=".$ilDB->quote($this->getTotalObjectives()).", ";
                $q.="version=".$ilDB->quote($this->getVersion()).", ";
                $q.="max_normal=".$ilDB->quote($this->getMaxNormal()).", ";
                $q.="description=".$ilDB->quote($this->getDescription())." ";           
                $q.="WHERE obj_id = ".$ilDB->quote($this->getId());
                $this->ilias->db->query($q);
        }

Here is the call graph for this function:


Field Documentation

ilAICCCourse::$course_id

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

ilAICCCourse::$course_system

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

ilAICCCourse::$course_title

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

ilAICCCourse::$description

Reimplemented from ilAICCObject.

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

ilAICCCourse::$level

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

ilAICCCourse::$max_fields_cst

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

ilAICCCourse::$max_fields_ort

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

ilAICCCourse::$max_normal

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

ilAICCCourse::$total_aus

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

ilAICCCourse::$total_blocks

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

ilAICCCourse::$total_complex_obj

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

ilAICCCourse::$total_objectives

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

ilAICCCourse::$version

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


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