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) | |
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 | |
Definition at line 26 of file class.ilAICCUnit.php.
| 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;
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.=$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;
parent::delete();
$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.
Referenced by create(), and update().
{
return $this->au_password;
}
Here is the caller graph for this function:| ilAICCUnit::getAUType | ( | ) |
Definition at line 60 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->au_type;
}
Here is the caller graph for this function:| ilAICCUnit::getCommand_line | ( | ) |
Definition at line 70 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->command_line;
}
Here is the caller graph for this function:| ilAICCUnit::getCoreVendor | ( | ) |
Definition at line 110 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->core_vendor;
}
Here is the caller graph for this function:| ilAICCUnit::getFilename | ( | ) |
Definition at line 130 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->file_name;
}
Here is the caller graph for this function:| ilAICCUnit::getMasteryScore | ( | ) |
Definition at line 140 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->mastery_score;
}
Here is the caller graph for this function:| ilAICCUnit::getMaxScore | ( | ) |
Definition at line 100 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->max_score;
}
Here is the caller graph for this function:| ilAICCUnit::getMaxTimeAllowed | ( | ) |
Definition at line 80 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->max_time_allowed;
}
Here is the caller graph for this function:| ilAICCUnit::getSystemVendor | ( | ) |
Definition at line 120 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->system_vendor;
}
Here is the caller graph for this function:| ilAICCUnit::getTimeLimitAction | ( | ) |
Definition at line 90 of file class.ilAICCUnit.php.
Referenced by create(), and update().
{
return $this->time_limit_action;
}
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 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.
Referenced by create(), and update().
{
return $this->web_launch;
}
Here is the caller graph for this function:| ilAICCUnit::ilAICCUnit | ( | $ | a_id = 0 |
) |
Constructor.
| int | $a_id Object ID public |
Definition at line 54 of file class.ilAICCUnit.php.
References ilAICCObject::ilAICCObject(), and ilAICCObject::setType().
{
parent::ilAICCObject($a_id);
$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 ilAICCObject::getId(), setAUPassword(), setAUType(), setCommand_line(), setCoreVendor(), setFilename(), setMasteryScore(), setMaxScore(), setMaxTimeAllowed(), setSystemVendor(), setTimeLimitAction(), and setWebLaunch().
{
global $ilDB;
parent::read();
$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;
parent::update();
$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:| ilAICCUnit::$au_password |
Definition at line 46 of file class.ilAICCUnit.php.
| ilAICCUnit::$command_line |
Definition at line 37 of file class.ilAICCUnit.php.
| ilAICCUnit::$core_vendor |
Definition at line 41 of file class.ilAICCUnit.php.
| ilAICCUnit::$file_name |
Definition at line 43 of file class.ilAICCUnit.php.
| ilAICCUnit::$mastery_score |
Definition at line 44 of file class.ilAICCUnit.php.
| ilAICCUnit::$max_score |
Definition at line 40 of file class.ilAICCUnit.php.
| ilAICCUnit::$max_time_allowed |
Definition at line 38 of file class.ilAICCUnit.php.
| ilAICCUnit::$system_vendor |
Definition at line 42 of file class.ilAICCUnit.php.
| ilAICCUnit::$time_limit_action |
Definition at line 39 of file class.ilAICCUnit.php.
| ilAICCUnit::$web_launch |
Definition at line 45 of file class.ilAICCUnit.php.
1.7.1