ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
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)
- Public Member Functions inherited from ilAICCObject
 ilAICCObject ($a_id=0)
 Constructor.
 getId ()
 setId ($a_id)
 getType ()
 setType ($a_objType)
 getTitle ()
 setTitle ($a_title)
 getDeveloperId ()
 setDeveloperId ($a_developer_id)
 getSystemId ()
 setSystemId ($a_system_id)
 getALMId ()
 setALMId ($a_alm_id)
 prepForStore ($string)
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class

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
- Data Fields inherited from ilAICCObject
 $id
 $title
 $objType
 $alm_id
 $description
 $developer_id
 $system_id

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

References $course_creator.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getCourseId ( )

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

References $course_id.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getCourseSystem ( )

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

References $course_system.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getCourseTitle ( )

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

References $course_title.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getDescription ( )

Reimplemented from ilAICCObject.

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

References $description.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getLevel ( )

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

References $level.

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.

References $max_fields_cst.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getMaxFieldsOrt ( )

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

References $max_fields_ort.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getMaxNormal ( )

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

References $max_normal.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getTotalAUs ( )

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

References $total_aus.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getTotalBlocks ( )

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

References $total_blocks.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::getTotalComplexObj ( )

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

References $total_complex_obj.

Referenced by create(), and update().

+ Here is the caller graph for this function:

ilAICCCourse::getTotalObjectives ( )

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

References $total_objectives.

Referenced by create(), and update().

+ 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 DB_FETCHMODE_ASSOC, 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.

References $version.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCCourse::ilAICCCourse (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

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

References ilAICCObject\ilAICCObject(), and ilAICCObject\setType().

{
$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 DB_FETCHMODE_ASSOC, ilAICCObject\getId(), setCourseCreator(), setCourseId(), setCourseSystem(), setCourseTitle(), setDescription(), setLevel(), setMaxFieldsCst(), setMaxFieldsOrt(), setMaxNormal(), setTotalAUs(), setTotalBlocks(), setTotalComplexObj(), setTotalObjectives(), and setVersion().

{
global $ilDB;
$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;
$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.

Referenced by getCourseId().

ilAICCCourse::$course_system

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

Referenced by getCourseSystem().

ilAICCCourse::$course_title

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

Referenced by getCourseTitle().

ilAICCCourse::$description

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

Referenced by getDescription().

ilAICCCourse::$level

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

Referenced by getLevel().

ilAICCCourse::$max_fields_cst

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

Referenced by getMaxFieldsCst().

ilAICCCourse::$max_fields_ort

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

Referenced by getMaxFieldsOrt().

ilAICCCourse::$max_normal

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

Referenced by getMaxNormal().

ilAICCCourse::$total_aus

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

Referenced by getTotalAUs().

ilAICCCourse::$total_blocks

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

Referenced by getTotalBlocks().

ilAICCCourse::$total_complex_obj

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

Referenced by getTotalComplexObj().

ilAICCCourse::$total_objectives

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

Referenced by getTotalObjectives().

ilAICCCourse::$version

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

Referenced by getVersion().


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