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

Member Function Documentation

ilAICCUnit::create ( )

Reimplemented from ilAICCObject.

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

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

{
global $ilDB;
if($this->getMasteryScore() == NULL) $this->setMasteryScore(0);
$ilDB->manipulateF('
INSERT INTO aicc_units
( obj_id,
c_type,
command_line,
max_time_allowed,
time_limit_action,
max_score,
core_vendor,
system_vendor,
file_name,
mastery_score,
web_launch,
au_password
)
VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',
array('integer','text','text','time','text','float','text','text','text','integer','text','text'),
array( $this->getId(),
$this->getAUType(),
$this->getCommand_line(),
$this->getMaxScore(),
$this->getCoreVendor(),
$this->getSystemVendor(),
$this->getFilename(),
$this->getMasteryScore(),
$this->getWebLaunch(),
$this->getAUPassword())
);
}

+ Here is the call graph for this function:

ilAICCUnit::delete ( )

Reimplemented from ilAICCObject.

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

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

{
global $ilDB, $ilLog;
$q_log = "DELETE FROM aicc_units WHERE obj_id =".$ilDB->quote($this->getId());
$ilLog->write("SAHS Delete(Unit): ".$q_log);
$ilDB->manipulateF(
'DELETE FROM aicc_units WHERE obj_id = %s',
array('integer'),
array($this->getId()));
$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:

ilAICCUnit::getAUPassword ( )

Definition at line 141 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 41 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 51 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 91 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 111 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 121 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 81 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 61 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 101 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 71 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 288 of file class.ilAICCUnit.php.

References $ilDB, $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:

ilAICCUnit::getWebLaunch ( )

Definition at line 131 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 35 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 315 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 151 of file class.ilAICCUnit.php.

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

{
global $ilDB;
$obj_set = $ilDB->queryF(
'SELECT * FROM aicc_units WHERE obj_id = %s',
array('integer'),
array($this->getId())
);
while($obj_rec = $ilDB->fetchAssoc($obj_set))
{
$this->setAUType($obj_rec["c_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 146 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 46 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 56 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 96 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 116 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 126 of file class.ilAICCUnit.php.

Referenced by create(), read(), and update().

{
$this->mastery_score = $a_mastery_score;
}

+ Here is the caller graph for this function:

ilAICCUnit::setMaxScore (   $a_max_score)

Definition at line 86 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 66 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 106 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 76 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 136 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 $ilDB, getAUPassword(), getAUType(), getCommand_line(), getCoreVendor(), getFilename(), ilAICCObject\getId(), getMasteryScore(), getMaxScore(), getMaxTimeAllowed(), getSystemVendor(), getTimeLimitAction(), getWebLaunch(), and setMasteryScore().

{
global $ilDB;
if($this->getMasteryScore() == NULL) $this->setMasteryScore(0);
$ilDB->manipulateF('
UPDATE aicc_units
SET c_type = %s,
command_line = %s,
max_time_allowed = %s,
time_limit_action = %s,
max_score = %s,
core_vendor = %s,
system_vendor = %s,
file_name = %s,
mastery_score = %s,
web_launch = %s,
au_password = %s
WHERE obj_id = %s',
array('text','text','time','text','float','text','text','text','integer','text','text','integer'),
array( $this->getAUType(),
$this->getCommand_line(),
$this->getMaxScore(),
$this->getCoreVendor(),
$this->getSystemVendor(),
$this->getFilename(),
$this->getMasteryScore(),
$this->getWebLaunch(),
$this->getAUPassword(),
$this->getId())
);
}

+ Here is the call graph for this function:

Field Documentation

ilAICCUnit::$au_password

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

Referenced by getAUPassword().

ilAICCUnit::$command_line

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

Referenced by getCommand_line().

ilAICCUnit::$core_vendor

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

Referenced by getCoreVendor().

ilAICCUnit::$file_name

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

Referenced by getFilename().

ilAICCUnit::$mastery_score

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

Referenced by getMasteryScore().

ilAICCUnit::$max_score

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

Referenced by getMaxScore().

ilAICCUnit::$max_time_allowed

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

Referenced by getMaxTimeAllowed().

ilAICCUnit::$system_vendor

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

Referenced by getSystemVendor().

ilAICCUnit::$time_limit_action

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

Referenced by getTimeLimitAction().

ilAICCUnit::$web_launch

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

Referenced by getWebLaunch().


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