ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAICCUnit Class Reference
+ Inheritance diagram for ilAICCUnit:
+ Collaboration diagram for ilAICCUnit:

Public Member Functions

 ilAICCUnit ($a_id=0)
 Constructor.
 getAUType ()
 setAUType ($a_au_type)
 getCommand_line ()
 setCommand_line ($a_command_line)
 getMaxTimeAllowed ()
 setMaxTimeAllowed ($a_max_time_allowed)
 getTimeLimitAction ()
 setTimeLimitAction ($a_time_limit_action)
 getMaxScore ()
 setMaxScore ($a_max_score)
 getCoreVendor ()
 setCoreVendor ($a_core_vendor)
 getSystemVendor ()
 setSystemVendor ($a_system_vendor)
 getFilename ()
 setFilename ($a_file_name)
 getMasteryScore ()
 setMasteryScore ($a_mastery_score)
 getWebLaunch ()
 setWebLaunch ($a_web_launch)
 getAUPassword ()
 setAUPassword ($a_au_password)
 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)
 getDescription ()
 setDescription ($a_description)
 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

 $au_type
 AICC Item.
 $command_line
 $max_time_allowed
 $time_limit_action
 $max_score
 $core_vendor
 $system_vendor
 $file_name
 $mastery_score
 $web_launch
 $au_password
- Data Fields inherited from ilAICCObject
 $id
 $title
 $objType
 $alm_id
 $description
 $developer_id
 $system_id

Detailed Description

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

Member Function Documentation

ilAICCUnit::create ( )

Reimplemented from ilAICCObject.

Definition at line 193 of file class.ilAICCUnit.php.

References getAUPassword(), getAUType(), getCommand_line(), getCoreVendor(), getFilename(), ilAICCObject\getId(), getMasteryScore(), getMaxScore(), getMaxTimeAllowed(), getSystemVendor(), getTimeLimitAction(), and getWebLaunch().

{
global $ilDB;
$q = "INSERT INTO aicc_units (obj_id, type, command_line, max_time_allowed, time_limit_action,
max_score, core_vendor, system_vendor, file_name, mastery_score,
web_launch, au_password) VALUES (";
$q.=$ilDB->quote($this->getId()).", ";
$q.=$ilDB->quote($this->getAUType()).", ";
$q.=$ilDB->quote($this->getCommand_line()).", ";
$q.=$ilDB->quote($this->getMaxTimeAllowed()).", ";
$q.=$ilDB->quote($this->getTimeLimitAction()).", ";
$q.=$ilDB->quote($this->getMaxScore()).", ";
$q.=$ilDB->quote($this->getCoreVendor()).", ";
$q.=$ilDB->quote($this->getSystemVendor()).", ";
$q.=$ilDB->quote($this->getFilename()).", ";
$q.=$ilDB->quote($this->getMasteryScore()).", ";
$q.=$ilDB->quote($this->getWebLaunch()).", ";
$q.=$ilDB->quote($this->getAUPassword()).")";
$this->ilias->db->query($q);
}

+ Here is the call graph for this function:

ilAICCUnit::delete ( )

Reimplemented from ilAICCObject.

Definition at line 240 of file class.ilAICCUnit.php.

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

{
global $ilDB, $ilLog;
$q = "DELETE FROM aicc_units WHERE obj_id =".$ilDB->quote($this->getId());
$ilLog->write("SAHS Delete(Unit): ".$q);
$ilDB->query($q);
$q = "DELETE FROM scorm_tracking WHERE ".
"sco_id = ".$ilDB->quote($this->getId()).
" AND obj_id = ".$ilDB->quote($this->getALMId());
$ilDB->query($q);
}

+ Here is the call graph for this function:

ilAICCUnit::getAUPassword ( )

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

References $au_password.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getAUType ( )

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

References $au_type.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getCommand_line ( )

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

References $command_line.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getCoreVendor ( )

Definition at line 110 of file class.ilAICCUnit.php.

References $core_vendor.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getFilename ( )

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

References $file_name.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getMasteryScore ( )

Definition at line 140 of file class.ilAICCUnit.php.

References $mastery_score.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getMaxScore ( )

Definition at line 100 of file class.ilAICCUnit.php.

References $max_score.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getMaxTimeAllowed ( )

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

References $max_time_allowed.

Referenced by create(), and update().

+ Here is the caller graph for this function:

ilAICCUnit::getSystemVendor ( )

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

References $system_vendor.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::getTimeLimitAction ( )

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

References $time_limit_action.

Referenced by create(), and update().

+ Here is the caller graph for this function:

ilAICCUnit::getTrackingDataOfUser (   $a_user_id = 0)

get tracking data of specified or current user

Definition at line 262 of file class.ilAICCUnit.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:

ilAICCUnit::getWebLaunch ( )

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

References $web_launch.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilAICCUnit::ilAICCUnit (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

Definition at line 54 of file class.ilAICCUnit.php.

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

{
$this->setType("sau");
}

+ Here is the call graph for this function:

ilAICCUnit::insertTrackData (   $a_lval,
  $a_rval,
  $a_obj_id 
)

Definition at line 286 of file class.ilAICCUnit.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:

ilAICCUnit::read ( )

Reimplemented from ilAICCObject.

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

References DB_FETCHMODE_ASSOC, ilAICCObject\getId(), setAUPassword(), setAUType(), setCommand_line(), setCoreVendor(), setFilename(), setMasteryScore(), setMaxScore(), setMaxTimeAllowed(), setSystemVendor(), setTimeLimitAction(), and setWebLaunch().

{
global $ilDB;
$q = "SELECT * FROM aicc_units WHERE obj_id = ".$ilDB->quote($this->getId());
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$this->setAUType($obj_rec["type"]);
$this->setCommand_line($obj_rec["command_line"]);
$this->setMaxTimeAllowed($obj_rec["max_time_allowed"]);
$this->setTimeLimitAction($obj_rec["time_limit_action"]);
$this->setMaxScore($obj_rec["max_score"]);
$this->setCoreVendor($obj_rec["core_vendor"]);
$this->setSystemVendor($obj_rec["system_vendor"]);
$this->setFilename($obj_rec["file_name"]);
$this->setMasteryScore($obj_rec["mastery_score"]);
$this->setWebLaunch($obj_rec["web_launch"]);
$this->setAUPassword($obj_rec["au_password"]);
}

+ Here is the call graph for this function:

ilAICCUnit::setAUPassword (   $a_au_password)

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

Referenced by read().

{
$this->au_password = $a_au_password;
}

+ Here is the caller graph for this function:

ilAICCUnit::setAUType (   $a_au_type)

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

Referenced by read().

{
$this->au_type = $a_au_type;
}

+ Here is the caller graph for this function:

ilAICCUnit::setCommand_line (   $a_command_line)

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

Referenced by read().

{
$this->command_line = $a_command_line;
}

+ Here is the caller graph for this function:

ilAICCUnit::setCoreVendor (   $a_core_vendor)

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

Referenced by read().

{
$this->core_vendor = $a_core_vendor;
}

+ Here is the caller graph for this function:

ilAICCUnit::setFilename (   $a_file_name)

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

Referenced by read().

{
$this->file_name = $a_file_name;
}

+ Here is the caller graph for this function:

ilAICCUnit::setMasteryScore (   $a_mastery_score)

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

Referenced by read().

{
$this->mastery_score = $a_mastery_score;
}

+ Here is the caller graph for this function:

ilAICCUnit::setMaxScore (   $a_max_score)

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

Referenced by read().

{
$this->max_score = $a_max_score;
}

+ Here is the caller graph for this function:

ilAICCUnit::setMaxTimeAllowed (   $a_max_time_allowed)

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

Referenced by read().

{
$this->max_time_allowed = $a_max_time_allowed;
}

+ Here is the caller graph for this function:

ilAICCUnit::setSystemVendor (   $a_system_vendor)

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

Referenced by read().

{
$this->system_vendor = $a_system_vendor;
}

+ Here is the caller graph for this function:

ilAICCUnit::setTimeLimitAction (   $a_time_limit_action)

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

Referenced by read().

{
$this->time_limit_action = $a_time_limit_action;
}

+ Here is the caller graph for this function:

ilAICCUnit::setWebLaunch (   $a_web_launch)

Definition at line 155 of file class.ilAICCUnit.php.

Referenced by read().

{
$this->web_launch = $a_web_launch;
}

+ Here is the caller graph for this function:

ilAICCUnit::update ( )

Reimplemented from ilAICCObject.

Definition at line 218 of file class.ilAICCUnit.php.

References getAUPassword(), getAUType(), getCommand_line(), getCoreVendor(), getFilename(), ilAICCObject\getId(), getMasteryScore(), getMaxScore(), getMaxTimeAllowed(), getSystemVendor(), getTimeLimitAction(), and getWebLaunch().

{
global $ilDB;
$q = "UPDATE aicc_units SET ";
$q.="type=".$ilDB->quote($this->getAUType()).", ";
$q.="command_line=".$ilDB->quote($this->getCommand_line()).", ";
$q.="max_time_allowed=".$ilDB->quote($this->getMaxTimeAllowed()).", ";
$q.="time_limit_action=".$ilDB->quote($this->getTimeLimitAction()).", ";
$q.="max_score=".$ilDB->quote($this->getMaxScore()).", ";
$q.="core_vendor=".$ilDB->quote($this->getCoreVendor()).", ";
$q.="system_vendor=".$ilDB->quote($this->getSystemVendor()).", ";
$q.="file_name=".$ilDB->quote($this->getFilename()).", ";
$q.="mastery_score=".$ilDB->quote($this->getMasteryScore()).", ";
$q.="web_launch=".$ilDB->quote($this->getWebLaunch()).", ";
$q.="au_password=".$ilDB->quote($this->getAUPassword())." ";
$q.="WHERE obj_id = ".$ilDB->quote($this->getId());
$this->ilias->db->query($q);
}

+ Here is the call graph for this function:

Field Documentation

ilAICCUnit::$au_password

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

Referenced by getAUPassword().

ilAICCUnit::$command_line

Definition at line 37 of file class.ilAICCUnit.php.

Referenced by getCommand_line().

ilAICCUnit::$core_vendor

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

Referenced by getCoreVendor().

ilAICCUnit::$file_name

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

Referenced by getFilename().

ilAICCUnit::$mastery_score

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

Referenced by getMasteryScore().

ilAICCUnit::$max_score

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

Referenced by getMaxScore().

ilAICCUnit::$max_time_allowed

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

Referenced by getMaxTimeAllowed().

ilAICCUnit::$system_vendor

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

Referenced by getSystemVendor().

ilAICCUnit::$time_limit_action

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

Referenced by getTimeLimitAction().

ilAICCUnit::$web_launch

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

Referenced by getWebLaunch().


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