ILIAS  Release_4_4_x_branch Revision 61816
 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 7 of file class.ilAICCCourse.php.

Member Function Documentation

ilAICCCourse::create ( )

Reimplemented from ilAICCObject.

Definition at line 217 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;
$ilDB->insert('aicc_course', array(
'obj_id' => array('integer', $this->getId()),
'course_creator' => array('text', $this->getCourseCreator()),
'course_id' => array('text', $this->getCourseId()),
'course_system' => array('text', $this->getCourseSystem()),
'course_title' => array('text', $this->getCourseTitle()),
'c_level' => array('text', $this->getLevel()),
'max_fields_cst' => array('integer', $this->getMaxFieldsCst()),
'max_fields_ort' => array('integer', $this->getMaxFieldsOrt()),
'total_aus' => array('integer', $this->getTotalAUs()),
'total_blocks' => array('integer', $this->getTotalBlocks()),
'total_complex_obj' => array('integer', $this->getTotalComplexObj()),
'total_objectives' => array('integer', $this->getTotalObjectives()),
'version' => array('text', $this->getVersion()),
'max_normal' => array('integer', $this->getMaxNormal()),
'description' => array('clob', $this->getDescription())
));
}

+ Here is the call graph for this function:

ilAICCCourse::delete ( )

Reimplemented from ilAICCObject.

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

References $ilLog, ilLPStatusWrapper\_refreshStatus(), ilAICCObject\getALMId(), and ilAICCObject\getId().

{
global $ilDB, $ilLog;
$statement = $ilDB->manipulateF(
'DELETE FROM aicc_course WHERE obj_id = %s',
array('integer'),
array($this->getId())
);
$statement = $ilDB->manipulateF('
DELETE FROM scorm_tracking
WHERE sco_id = %s
AND obj_id = %s',
array('integer', 'integer'),
array($this->getId(),$this->getALMId())
);
// update learning progress status
include_once("./Services/Tracking/classes/class.ilLPStatusWrapper.php");
}

+ Here is the call graph for this function:

ilAICCCourse::getCourseCreator ( )

Definition at line 45 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 55 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 65 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 75 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 179 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 85 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 95 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 106 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 169 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 117 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 127 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 138 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 149 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 302 of file class.ilAICCCourse.php.

References $ilUser, ilAICCObject\getALMId(), and ilAICCObject\getId().

{
global $ilDB, $ilUser;
if ($a_user_id == 0)
{
$a_user_id = $ilUser->getId();
}
$track_set = $ilDB->queryF('
SELECT lvalue, rvalue FROM scorm_tracking
WHERE sco_id = %s
AND user_id = %s
AND obj_id = %s',
array('integer', 'integer', 'integer'),
array($this->getId(), $a_user_id, $this->getALMId())
);
$trdata = array();
while ($track_rec = $ilDB->fetchAssoc($track_set))
{
$trdata[$track_rec["lvalue"]] = $track_rec["rvalue"];
}
return $trdata;
}

+ Here is the call graph for this function:

ilAICCCourse::getVersion ( )

Definition at line 159 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 39 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 328 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 189 of file class.ilAICCCourse.php.

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

{
global $ilDB;
$obj_set = $ilDB->queryF('SELECT * FROM aicc_course WHERE obj_id = %s',
array('integer'), array($this->id));
while($obj_rec = $ilDB->fetchAssoc($obj_set))
{
$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["c_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 184 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().

{
if($a_max_fields_cst == NULL) $a_max_fields_cst=0;
$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 111 of file class.ilAICCCourse.php.

Referenced by read().

{
if($a_max_fields_ort == NULL) $a_max_fields_ort=0;
$this->max_fields_ort = $a_max_fields_ort;
}

+ Here is the caller graph for this function:

ilAICCCourse::setMaxNormal (   $a_max_normal)

Definition at line 174 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 122 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 132 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 143 of file class.ilAICCCourse.php.

Referenced by read().

{
if($a_total_complex_obj == NULL) $a_total_complex_obj=0;
$this->total_complex_obj = $a_total_complex_obj;
}

+ Here is the caller graph for this function:

ilAICCCourse::setTotalObjectives (   $a_total_objectives)

Definition at line 154 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 164 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 242 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;
$ilDB->update('aicc_course',
array(
'course_creator' => array('text', $this->getCourseCreator()),
'course_id' => array('text', $this->getCourseId()),
'course_system' => array('text', $this->getCourseSystem()),
'course_title' => array('text', $this->getCourseTitle()),
'c_level' => array('text', $this->getLevel()),
'max_fields_cst' => array('integer', $this->getMaxFieldsCst()),
'max_fields_ort' => array('integer', $this->getMaxFieldsOrt()),
'total_aus' => array('integer', $this->getTotalAUs()),
'total_blocks' => array('integer', $this->getTotalBlocks()),
'total_complex_obj' => array('integer', $this->getTotalComplexObj()),
'total_objectives' => array('integer', $this->getTotalObjectives()),
'version' => array('text', $this->getVersion()),
'max_normal' => array('integer', $this->getMaxNormal()),
'description' => array('clob', $this->getDescription())
),
array(
'obj_id' => array('integer', $this->getId())
)
);
}

+ Here is the call graph for this function:

Field Documentation

ilAICCCourse::$course_id

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

Referenced by getCourseId().

ilAICCCourse::$course_system

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

Referenced by getCourseSystem().

ilAICCCourse::$course_title

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

Referenced by getCourseTitle().

ilAICCCourse::$description

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

Referenced by getDescription().

ilAICCCourse::$level

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

Referenced by getLevel().

ilAICCCourse::$max_fields_cst

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

Referenced by getMaxFieldsCst().

ilAICCCourse::$max_fields_ort

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

Referenced by getMaxFieldsOrt().

ilAICCCourse::$max_normal

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

Referenced by getMaxNormal().

ilAICCCourse::$total_aus

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

Referenced by getTotalAUs().

ilAICCCourse::$total_blocks

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

Referenced by getTotalBlocks().

ilAICCCourse::$total_complex_obj

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

Referenced by getTotalComplexObj().

ilAICCCourse::$total_objectives

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

Referenced by getTotalObjectives().

ilAICCCourse::$version

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

Referenced by getVersion().


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