Inheritance diagram for ilSCORMResources:
Collaboration diagram for ilSCORMResources:Public Member Functions | |
| ilSCORMResources ($a_id=0) | |
| Constructor. | |
| getXmlBase () | |
| setXmlBase ($a_xml_base) | |
| read () | |
| create () | |
| Create database record for SCORM object. | |
| update () | |
| Updates database record for SCORM object. | |
| delete () | |
Data Fields | |
| $xml_base | |
Definition at line 35 of file class.ilSCORMResources.php.
| ilSCORMResources::create | ( | ) |
Create database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 77 of file class.ilSCORMResources.php.
References $q, and getXmlBase().
{
parent::create();
$q = "INSERT INTO sc_resources (obj_id, xml_base) VALUES ".
"('".$this->getId()."', '".$this->getXmlBase()."')";
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilSCORMResources::delete | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 96 of file class.ilSCORMResources.php.
References $q, and ilSCORMObject::getId().
{
global $ilDB;
parent::delete();
$q = "DELETE FROM sc_resources WHERE obj_id =".$ilDB->quote($this->getId());
$ilDB->query($q);
}
Here is the call graph for this function:| ilSCORMResources::getXmlBase | ( | ) |
Definition at line 56 of file class.ilSCORMResources.php.
Referenced by create().
{
return $this->xml_base;
}
Here is the caller graph for this function:| ilSCORMResources::ilSCORMResources | ( | $ | a_id = 0 |
) |
Constructor.
| int | $a_id Object ID public |
Definition at line 46 of file class.ilSCORMResources.php.
References $lng, ilSCORMObject::ilSCORMObject(), ilSCORMObject::setTitle(), and ilSCORMObject::setType().
{
global $lng;
parent::ilSCORMObject($a_id);
$this->setType("srs");
$this->setTitle($lng->txt("cont_resources"));
}
Here is the call graph for this function:| ilSCORMResources::read | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 66 of file class.ilSCORMResources.php.
References $q, and setXmlBase().
{
parent::read();
$q = "SELECT * FROM sc_resources WHERE obj_id = '".$this->getId()."'";
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$this->setXmlBase($obj_rec["xml_base"]);
}
Here is the call graph for this function:| ilSCORMResources::setXmlBase | ( | $ | a_xml_base | ) |
Definition at line 61 of file class.ilSCORMResources.php.
Referenced by read().
{
$this->xml_base = $a_xml_base;
}
Here is the caller graph for this function:| ilSCORMResources::update | ( | ) |
Updates database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 86 of file class.ilSCORMResources.php.
References $q.
{
parent::update();
$q = "UPDATE sc_resources SET ".
"xml_base = '".$this->getXmlBase()."' ".
"WHERE obj_id = '".$this->getId()."'";
$this->ilias->db->query($q);
}
| ilSCORMResources::$xml_base |
Definition at line 37 of file class.ilSCORMResources.php.
1.7.1