ILIAS  release_7 Revision v7.30-3-g800a261c036
ilSCORMResources Class Reference

SCORM Resources Element. More...

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

Public Member Functions

 __construct ($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
 __construct ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_type)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getSLMId ()
 
 setSLMId ($a_slm_id)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 

Data Fields

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

Additional Inherited Members

- Static Public Member Functions inherited from ilSCORMObject
static _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
static & _getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMResources::__construct (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

Reimplemented from ilSCORMObject.

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

46 {
47 global $DIC;
48 $lng = $DIC['lng'];
49
51 $this->setType('srs');
52
53 $this->setTitle($lng->txt('cont_resources'));
54 }
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$lng

References $DIC, $lng, ILIAS\GlobalScreen\Provider\__construct(), ilSCORMObject\setTitle(), and ilSCORMObject\setType().

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMResources::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

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

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMResources::delete ( )

Reimplemented from ilSCORMObject.

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

112 {
113 global $DIC;
114 $ilDB = $DIC['ilDB'];
115
116 parent::delete();
117
118 $ilDB->manipulateF(
119 'DELETE FROM sc_resources WHERE obj_id = %s',
120 array('integer'),
121 array($this->getId())
122 );
123 }

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

+ Here is the call graph for this function:

◆ getXmlBase()

ilSCORMResources::getXmlBase ( )

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

References $xml_base.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMResources::read ( )

Reimplemented from ilSCORMObject.

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

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

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

+ Here is the call graph for this function:

◆ setXmlBase()

ilSCORMResources::setXmlBase (   $a_xml_base)

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

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

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 96 of file class.ilSCORMResources.php.

97 {
98 global $DIC;
99 $ilDB = $DIC['ilDB'];
100
101 parent::update();
102
103 $ilDB->manipulateF(
104 '
105 UPDATE sc_resources SET xml_base = %s WHERE obj_id = %s',
106 array('text', 'integer'),
107 array($this->getXmlBase() ,$this->getId())
108 );
109 }

References $DIC, $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: