Inheritance diagram for ilSCORMManifest:
Collaboration diagram for ilSCORMManifest:Public Member Functions | |
| ilSCORMManifest ($a_id=0) | |
| Constructor. | |
| getImportId () | |
| setImportId ($a_import_id) | |
| getVersion () | |
| setVersion ($a_version) | |
| getXmlBase () | |
| setXmlBase ($a_xml_base) | |
| read () | |
| create () | |
| Create database record for SCORM object. | |
| update () | |
| Updates database record for SCORM object. | |
| delete () | |
Data Fields | |
| $import_id | |
| $version | |
| $xml_base | |
Definition at line 35 of file class.ilSCORMManifest.php.
| ilSCORMManifest::create | ( | ) |
Create database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 98 of file class.ilSCORMManifest.php.
References $q, getImportId(), and getXmlBase().
{
parent::create();
$q = "INSERT INTO sc_manifest (obj_id, import_id, version, xml_base) VALUES ".
"('".$this->getId()."', '".$this->getImportId().
"', '".$this->getVersion()."', '".$this->getXmlBase()."')";
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilSCORMManifest::delete | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 120 of file class.ilSCORMManifest.php.
References $q, and ilSCORMObject::getId().
{
global $ilDB;
parent::delete();
$q = "DELETE FROM sc_manifest WHERE obj_id =".$ilDB->quote($this->getId());
$ilDB->query($q);
}
Here is the call graph for this function:| ilSCORMManifest::getImportId | ( | ) |
Definition at line 54 of file class.ilSCORMManifest.php.
Referenced by create().
{
return $this->import_id;
}
Here is the caller graph for this function:| ilSCORMManifest::getVersion | ( | ) |
Definition at line 65 of file class.ilSCORMManifest.php.
{
return $this->version;
}
| ilSCORMManifest::getXmlBase | ( | ) |
Definition at line 75 of file class.ilSCORMManifest.php.
Referenced by create().
{
return $this->xml_base;
}
Here is the caller graph for this function:| ilSCORMManifest::ilSCORMManifest | ( | $ | a_id = 0 |
) |
Constructor.
| int | $a_id Object ID public |
Definition at line 48 of file class.ilSCORMManifest.php.
References ilSCORMObject::ilSCORMObject(), and ilSCORMObject::setType().
{
parent::ilSCORMObject($a_id);
$this->setType("sma");
}
Here is the call graph for this function:| ilSCORMManifest::read | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 85 of file class.ilSCORMManifest.php.
References $q, setImportId(), setVersion(), and setXmlBase().
{
parent::read();
$q = "SELECT * FROM sc_manifest WHERE obj_id = '".$this->getId()."'";
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$this->setImportId($obj_rec["import_id"]);
$this->setVersion($obj_rec["version"]);
$this->setXmlBase($obj_rec["xml_base"]);
}
Here is the call graph for this function:| ilSCORMManifest::setImportId | ( | $ | a_import_id | ) |
Definition at line 59 of file class.ilSCORMManifest.php.
References ilSCORMObject::setTitle().
Referenced by read().
{
$this->import_id = $a_import_id;
$this->setTitle($a_import_id);
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilSCORMManifest::setVersion | ( | $ | a_version | ) |
Definition at line 70 of file class.ilSCORMManifest.php.
Referenced by read().
{
$this->version = $a_version;
}
Here is the caller graph for this function:| ilSCORMManifest::setXmlBase | ( | $ | a_xml_base | ) |
Definition at line 80 of file class.ilSCORMManifest.php.
Referenced by read().
{
$this->xml_base = $a_xml_base;
}
Here is the caller graph for this function:| ilSCORMManifest::update | ( | ) |
Updates database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 108 of file class.ilSCORMManifest.php.
References $q.
{
parent::update();
$q = "UPDATE sc_manifest SET ".
"import_id = '".$this->getImportId()."', ".
"version = '".$this->getVersion()."', ".
"xml_base = '".$this->getXmlBase()."' ".
"WHERE obj_id = '".$this->getId()."'";
$this->ilias->db->query($q);
}
| ilSCORMManifest::$import_id |
Definition at line 37 of file class.ilSCORMManifest.php.
| ilSCORMManifest::$version |
Definition at line 38 of file class.ilSCORMManifest.php.
| ilSCORMManifest::$xml_base |
Definition at line 39 of file class.ilSCORMManifest.php.
1.7.1