ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMResources Class Reference

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 ()
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor.
 getId ()
 setId ($a_id)
 getType ()
 setType ($a_type)
 getTitle ()
 setTitle ($a_title)
 getSLMId ()
 setSLMId ($a_slm_id)
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module.
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class

Data Fields

 $xml_base
- Data Fields inherited from ilSCORMObject
 $id
 $title
 $type
 $slm_id

Detailed Description

SCORM Resources Element.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMResources.php 15697 2008-01-08 20:04:33Z hschottm

Definition at line 34 of file class.ilSCORMResources.php.

Member Function Documentation

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;
$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;
$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.

References $xml_base.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

ilSCORMResources::ilSCORMResources (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

Definition at line 45 of file class.ilSCORMResources.php.

References $lng, ilSCORMObject\ilSCORMObject(), ilSCORMObject\setTitle(), and ilSCORMObject\setType().

{
global $lng;
$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 DB_FETCHMODE_ASSOC, ilSCORMObject\getId(), and setXmlBase().

{
global $ilDB;
$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;
$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:

Field Documentation

ilSCORMResources::$xml_base

Definition at line 36 of file class.ilSCORMResources.php.

Referenced by getXmlBase().


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