ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $lng;
48
49 parent::__construct($a_id);
50 $this->setType('srs');
51
52 $this->setTitle($lng->txt('cont_resources'));
53 }
global $lng
Definition: privfeed.php:17

References $lng, 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 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 107 of file class.ilSCORMResources.php.

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

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:

◆ 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
98
99 $ilDB->manipulateF(
100 '
101 UPDATE sc_resources SET xml_base = %s WHERE obj_id = %s',
102 array('text', 'integer'),
103 array($this->getXmlBase() ,$this->getId())
104 );
105 }
update($pash, $contents, Config $config)

References $ilDB, ilSCORMObject\getId(), getXmlBase(), and League\Flysystem\Adapter\Polyfill\update().

+ 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: