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) | |
Data Fields | |
$au_type | |
$command_line | |
$max_time_allowed | |
$time_limit_action | |
$max_score | |
$core_vendor | |
$system_vendor | |
$file_name | |
$mastery_score | |
$web_launch | |
$au_password |
Definition at line 5 of file class.ilAICCUnit.php.
ilAICCUnit::create | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 172 of file class.ilAICCUnit.php.
References $q, getAUPassword(), getAUType(), getCommand_line(), getCoreVendor(), getFilename(), getMasteryScore(), getMaxScore(), getMaxTimeAllowed(), getSystemVendor(), getTimeLimitAction(), and getWebLaunch().
{ parent::create(); $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.="'".$this->getId()."', "; $q.="'".$this->prepForStore($this->getAUType())."', "; $q.="'".$this->prepForStore($this->getCommand_line())."', "; $q.="'".$this->prepForStore($this->getMaxTimeAllowed())."', "; $q.="'".$this->prepForStore($this->getTimeLimitAction())."', "; $q.="'".$this->prepForStore($this->getMaxScore())."', "; $q.="'".$this->prepForStore($this->getCoreVendor())."', "; $q.="'".$this->prepForStore($this->getSystemVendor())."', "; $q.="'".$this->prepForStore($this->getFilename())."', "; $q.="'".$this->prepForStore($this->getMasteryScore())."', "; $q.="'".$this->prepForStore($this->getWebLaunch())."', "; $q.="'".$this->prepForStore($this->getAUPassword())."')"; $this->ilias->db->query($q); }
ilAICCUnit::delete | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 215 of file class.ilAICCUnit.php.
References $q, and ilAICCObject::getId().
{ global $ilDB; parent::delete(); $q = "DELETE FROM aicc_units WHERE obj_id =".$ilDB->quote($this->getId()); $ilDB->query($q); $q = "DELETE FROM scorm_tracking WHERE ". "sco_id = ".$ilDB->quote($this->getId()); $ilDB->query($q); }
ilAICCUnit::getAUPassword | ( | ) |
Definition at line 141 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->au_password;
}
ilAICCUnit::getAUType | ( | ) |
Definition at line 41 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->au_type;
}
ilAICCUnit::getCommand_line | ( | ) |
Definition at line 51 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->command_line;
}
ilAICCUnit::getCoreVendor | ( | ) |
Definition at line 91 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->core_vendor;
}
ilAICCUnit::getFilename | ( | ) |
Definition at line 111 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->file_name;
}
ilAICCUnit::getMasteryScore | ( | ) |
Definition at line 121 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->mastery_score;
}
ilAICCUnit::getMaxScore | ( | ) |
Definition at line 81 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->max_score;
}
ilAICCUnit::getMaxTimeAllowed | ( | ) |
Definition at line 61 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->max_time_allowed;
}
ilAICCUnit::getSystemVendor | ( | ) |
Definition at line 101 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->system_vendor;
}
ilAICCUnit::getTimeLimitAction | ( | ) |
Definition at line 71 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->time_limit_action;
}
ilAICCUnit::getTrackingDataOfUser | ( | $ | a_user_id = 0 |
) |
get tracking data of specified or current user
Definition at line 235 of file class.ilAICCUnit.php.
References $q.
{ global $ilDB, $ilUser; if ($a_user_id == 0) { $a_user_id = $ilUser->getId(); } $q = "SELECT * FROM scorm_tracking WHERE ". "sco_id = '".$this->getId()."' AND ". "user_id = '".$a_user_id."'"; $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; }
ilAICCUnit::getWebLaunch | ( | ) |
Definition at line 131 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->web_launch;
}
ilAICCUnit::ilAICCUnit | ( | $ | a_id = 0 |
) |
Constructor.
int | $a_id Object ID public |
Definition at line 35 of file class.ilAICCUnit.php.
References ilAICCObject::ilAICCObject(), and ilAICCObject::setType().
{ parent::ilAICCObject($a_id); $this->setType("sau"); }
ilAICCUnit::insertTrackData | ( | $ | a_lval, | |
$ | a_rval, | |||
$ | a_obj_id | |||
) |
Definition at line 258 of file class.ilAICCUnit.php.
References ilObjSCORMTracking::_insertTrackData(), and ilAICCObject::getId().
{ require_once("content/classes/SCORM/class.ilObjSCORMTracking.php"); ilObjSCORMTracking::_insertTrackData($this->getId(), $a_lval, $a_rval, $a_obj_id); }
ilAICCUnit::read | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 151 of file class.ilAICCUnit.php.
References $q, setAUPassword(), setAUType(), setCommand_line(), setCoreVendor(), setFilename(), setMasteryScore(), setMaxScore(), setMaxTimeAllowed(), setSystemVendor(), setTimeLimitAction(), and setWebLaunch().
{ parent::read(); $q = "SELECT * FROM aicc_units WHERE obj_id = '".$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"]); }
ilAICCUnit::setAUPassword | ( | $ | a_au_password | ) |
Definition at line 146 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->au_password = $a_au_password; }
ilAICCUnit::setAUType | ( | $ | a_au_type | ) |
Definition at line 46 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->au_type = $a_au_type; }
ilAICCUnit::setCommand_line | ( | $ | a_command_line | ) |
Definition at line 56 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->command_line = $a_command_line; }
ilAICCUnit::setCoreVendor | ( | $ | a_core_vendor | ) |
Definition at line 96 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->core_vendor = $a_core_vendor; }
ilAICCUnit::setFilename | ( | $ | a_file_name | ) |
Definition at line 116 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->file_name = $a_file_name; }
ilAICCUnit::setMasteryScore | ( | $ | a_mastery_score | ) |
Definition at line 126 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->mastery_score = $a_mastery_score; }
ilAICCUnit::setMaxScore | ( | $ | a_max_score | ) |
Definition at line 86 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->max_score = $a_max_score; }
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; }
ilAICCUnit::setSystemVendor | ( | $ | a_system_vendor | ) |
Definition at line 106 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->system_vendor = $a_system_vendor; }
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; }
ilAICCUnit::setWebLaunch | ( | $ | a_web_launch | ) |
Definition at line 136 of file class.ilAICCUnit.php.
Referenced by read().
{ $this->web_launch = $a_web_launch; }
ilAICCUnit::update | ( | ) |
Reimplemented from ilAICCObject.
Definition at line 195 of file class.ilAICCUnit.php.
References $q, getAUPassword(), getAUType(), getCommand_line(), getCoreVendor(), getFilename(), getMasteryScore(), getMaxScore(), getMaxTimeAllowed(), getSystemVendor(), getTimeLimitAction(), and getWebLaunch().
{ parent::update(); $q = "UPDATE aicc_units SET "; $q.="type='".$this->prepForStore($this->getAUType())."', "; $q.="command_line='".$this->prepForStore($this->getCommand_line())."', "; $q.="max_time_allowed='".$this->prepForStore($this->getMaxTimeAllowed())."', "; $q.="time_limit_action='".$this->prepForStore($this->getTimeLimitAction())."', "; $q.="max_score='".$this->prepForStore($this->getMaxScore())."', "; $q.="core_vendor='".$this->prepForStore($this->getCoreVendor())."', "; $q.="system_vendor='".$this->prepForStore($this->getSystemVendor())."', "; $q.="file_name='".$this->prepForStore($this->getFilename())."', "; $q.="mastery_score='".$this->prepForStore($this->getMasteryScore())."', "; $q.="web_launch='".$this->prepForStore($this->getWebLaunch())."', "; $q.="au_password='".$this->prepForStore($this->getAUPassword())."' "; $q.="WHERE obj_id = '".$this->getId()."'"; $this->ilias->db->query($q); }
ilAICCUnit::$au_password |
Definition at line 27 of file class.ilAICCUnit.php.
ilAICCUnit::$au_type |
Definition at line 17 of file class.ilAICCUnit.php.
ilAICCUnit::$command_line |
Definition at line 18 of file class.ilAICCUnit.php.
ilAICCUnit::$core_vendor |
Definition at line 22 of file class.ilAICCUnit.php.
ilAICCUnit::$file_name |
Definition at line 24 of file class.ilAICCUnit.php.
ilAICCUnit::$mastery_score |
Definition at line 25 of file class.ilAICCUnit.php.
ilAICCUnit::$max_score |
Definition at line 21 of file class.ilAICCUnit.php.
ilAICCUnit::$max_time_allowed |
Definition at line 19 of file class.ilAICCUnit.php.
ilAICCUnit::$system_vendor |
Definition at line 23 of file class.ilAICCUnit.php.
ilAICCUnit::$time_limit_action |
Definition at line 20 of file class.ilAICCUnit.php.
ilAICCUnit::$web_launch |
Definition at line 26 of file class.ilAICCUnit.php.