ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSCORMResources Class Reference

SCORM Resources Element. More...

+ Inheritance diagram for ilSCORMResources:
+ Collaboration diagram for ilSCORMResources:

Public Member Functions

 ilSCORMResources ($a_id=0)
 Constructor. More...
 
 getXmlBase ()
 
 setXmlBase ($a_xml_base)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_type)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getSLMId ()
 
 setSLMId ($a_slm_id)
 
 read ()
 
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

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$

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

Member Function Documentation

◆ create()

ilSCORMResources::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

81 {
82 global $ilDB;
83
84 parent::create();
85
86 $ilDB->manipulateF(
87 'INSERT INTO sc_resources (obj_id, xml_base) VALUES (%s, %s)',
88 array('integer', 'text'),
89 array($this->getId(), $this->getXmlBase())
90 );
91 }
global $ilDB

References $ilDB, ilSCORMObject\getId(), and getXmlBase().

+ Here is the call graph for this function:

◆ delete()

ilSCORMResources::delete ( )

Reimplemented from ilSCORMObject.

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

107 {
108 global $ilDB;
109
110 parent::delete();
111
112 $ilDB->manipulateF(
113 'DELETE FROM sc_resources WHERE obj_id = %s',
114 array('integer'),
115 array($this->getId())
116 );
117 }

References $ilDB, and ilSCORMObject\getId().

+ Here is the call graph for this function:

◆ getXmlBase()

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::ilSCORMResources (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

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

46 {
47 global $lng;
48
49 parent::ilSCORMObject($a_id);
50 $this->setType('srs');
51
52 $this->setTitle($lng->txt('cont_resources'));
53 }
global $lng
Definition: privfeed.php:40

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

+ Here is the call graph for this function:

◆ read()

ilSCORMResources::read ( )

Reimplemented from ilSCORMObject.

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

66 {
67 global $ilDB;
68
69 parent::read();
70
71 $obj_set = $ilDB->queryF(
72 'SELECT xml_base FROM sc_resources WHERE obj_id = %s',
73 array('integer'),
74 array($this->getId())
75 );
76 $obj_rec = $ilDB->fetchAssoc($obj_set);
77 $this->setXmlBase($obj_rec['xml_base']);
78 }

References $ilDB, ilSCORMObject\getId(), and setXmlBase().

+ Here is the call graph for this function:

◆ setXmlBase()

ilSCORMResources::setXmlBase (   $a_xml_base)

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

61 {
62 $this->xml_base = $a_xml_base;
63 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilSCORMResources::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

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

94 {
95 global $ilDB;
96
97 parent::update();
98
99 $ilDB->manipulateF('
100 UPDATE sc_resources SET xml_base = %s WHERE obj_id = %s',
101 array('text', 'integer'),
102 array($this->getXmlBase() ,$this->getId())
103 );
104 }

References $ilDB, ilSCORMObject\getId(), and getXmlBase().

+ Here is the call graph for this function:

Field Documentation

◆ $xml_base

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: