SCORM Resources Element. More...
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 | |
SCORM Resources Element.
Definition at line 34 of file class.ilSCORMResources.php.
| ilSCORMResources::create | ( | ) |
Create database record for SCORM object.
Reimplemented from ilSCORMObject.
Definition at line 78 of file class.ilSCORMResources.php.
References ilSCORMObject::getId(), and getXmlBase().
{
global $ilDB;
parent::create();
$q = "INSERT INTO sc_resources (obj_id, xml_base) VALUES ".
"(".$ilDB->quote($this->getId()).", ".$ilDB->quote($this->getXmlBase()).")";
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilSCORMResources::delete | ( | ) |
Reimplemented from ilSCORMObject.
Definition at line 101 of file class.ilSCORMResources.php.
References 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 55 of file class.ilSCORMResources.php.
Referenced by create(), and update().
{
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 45 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 65 of file class.ilSCORMResources.php.
References ilSCORMObject::getId(), and setXmlBase().
{
global $ilDB;
parent::read();
$q = "SELECT * FROM sc_resources WHERE obj_id = ".$ilDB->quote($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 60 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 89 of file class.ilSCORMResources.php.
References ilSCORMObject::getId(), and getXmlBase().
{
global $ilDB;
parent::update();
$q = "UPDATE sc_resources SET ".
"xml_base = ".$ilDB->quote($this->getXmlBase())." ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
$this->ilias->db->query($q);
}
Here is the call graph for this function:| ilSCORMResources::$xml_base |
Definition at line 36 of file class.ilSCORMResources.php.
1.7.1