Public Member Functions | Data Fields

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)

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

Detailed Description

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


Member Function Documentation

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);
        }

Here is the call graph for this function:

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);

        }

Here is the call graph for this function:

ilAICCUnit::getAUPassword (  ) 

Definition at line 141 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 41 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 51 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 91 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 111 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 121 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 81 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 61 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 101 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 71 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 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;
        }

Here is the caller graph for this function:

ilAICCUnit::ilAICCUnit ( a_id = 0  ) 

Constructor.

Parameters:
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");
        }

Here is the call graph for this function:

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);
        }

Here is the call graph for this function:

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"]);
        }

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 read().

        {
                $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 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);
        }

Here is the call graph for this function:


Field Documentation

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.


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