ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ()
 
 update ()
 
 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 ()
 
_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
 

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

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 public

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

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

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
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMResources::create ( )

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

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

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  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilSCORMResources::delete ( )

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

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

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  }
Create styles array
The data for the language used.
global $ilDB
+ 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().

56  {
57  return $this->xml_base;
58  }
+ Here is the caller graph for this function:

◆ read()

ilSCORMResources::read ( )

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

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

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  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ setXmlBase()

ilSCORMResources::setXmlBase (   $a_xml_base)

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

Referenced by read().

61  {
62  $this->xml_base = $a_xml_base;
63  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMResources::update ( )

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

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

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  }
Create styles array
The data for the language used.
global $ilDB
+ 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: