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

SCORM Manifest. More...

+ Inheritance diagram for ilSCORMManifest:
+ Collaboration diagram for ilSCORMManifest:

Public Member Functions

 ilSCORMManifest ($a_id=0)
 Constructor. More...
 
 getImportId ()
 
 setImportId ($a_import_id)
 
 getVersion ()
 
 setVersion ($a_version)
 
 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

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

Detailed Description

SCORM Manifest.

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

Member Function Documentation

◆ create()

ilSCORMManifest::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

Definition at line 99 of file class.ilSCORMManifest.php.

100 {
101 global $ilDB;
102
103 parent::create();
104
105 $ilDB->manipulateF('
106 INSERT INTO sc_manifest (obj_id, import_id, version, xml_base)
107 VALUES (%s,%s,%s,%s)',
108 array('integer','text','text','text'),
109 array($this->getId(),$this->getImportId(),$this->getVersion(),$this->getXmlBase()));
110
111 }
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMManifest::delete ( )

Reimplemented from ilSCORMObject.

Definition at line 130 of file class.ilSCORMManifest.php.

131 {
132 global $ilDB;
133
134 parent::delete();
135
136 $ilDB->manipulateF('DELETE FROM sc_manifest WHERE obj_id = %s', array('integer'),array($this->getId()));
137 }

References $ilDB, and ilSCORMObject\getId().

+ Here is the call graph for this function:

◆ getImportId()

ilSCORMManifest::getImportId ( )

Definition at line 53 of file class.ilSCORMManifest.php.

References $import_id.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getVersion()

ilSCORMManifest::getVersion ( )

Definition at line 64 of file class.ilSCORMManifest.php.

65 {
66 return $this->version;
67 }

References $version.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getXmlBase()

ilSCORMManifest::getXmlBase ( )

Definition at line 74 of file class.ilSCORMManifest.php.

References $xml_base.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ ilSCORMManifest()

ilSCORMManifest::ilSCORMManifest (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

Definition at line 47 of file class.ilSCORMManifest.php.

48 {
49 parent::ilSCORMObject($a_id);
50 $this->setType("sma");
51 }

References ilSCORMObject\setType().

+ Here is the call graph for this function:

◆ read()

ilSCORMManifest::read ( )

Reimplemented from ilSCORMObject.

Definition at line 84 of file class.ilSCORMManifest.php.

85 {
86 global $ilDB;
87
88 parent::read();
89
90 $obj_set = $ilDB->queryF('SELECT * FROM sc_manifest WHERE obj_id = %s',
91 array('integer'),array($this->getId()));
92 $obj_rec = $ilDB->fetchAssoc($obj_set);
93
94 $this->setImportId($obj_rec["import_id"]);
95 $this->setVersion($obj_rec["version"]);
96 $this->setXmlBase($obj_rec["xml_base"]);
97 }
setImportId($a_import_id)

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

+ Here is the call graph for this function:

◆ setImportId()

ilSCORMManifest::setImportId (   $a_import_id)

Definition at line 58 of file class.ilSCORMManifest.php.

59 {
60 $this->import_id = $a_import_id;
61 $this->setTitle($a_import_id);
62 }

References ilSCORMObject\setTitle().

Referenced by read().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVersion()

ilSCORMManifest::setVersion (   $a_version)

Definition at line 69 of file class.ilSCORMManifest.php.

70 {
71 $this->version = $a_version;
72 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setXmlBase()

ilSCORMManifest::setXmlBase (   $a_xml_base)

Definition at line 79 of file class.ilSCORMManifest.php.

80 {
81 $this->xml_base = $a_xml_base;
82 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilSCORMManifest::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

Definition at line 113 of file class.ilSCORMManifest.php.

114 {
115 global $ilDB;
116
117 parent::update();
118
119 $ilDB->manipulateF('
120 UPDATE sc_manifest
121 SET import_id = %s,
122 version = %s,
123 xml_base = %s
124 WHERE obj_id = %s',
125 array('text','text','text','integer'),
126 array($this->getImportId(),$this->getVersion(),$this->getXmlBase(),$this->getId()));
127
128 }

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

+ Here is the call graph for this function:

Field Documentation

◆ $import_id

ilSCORMManifest::$import_id

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

Referenced by getImportId().

◆ $version

ilSCORMManifest::$version

Definition at line 37 of file class.ilSCORMManifest.php.

Referenced by getVersion().

◆ $xml_base

ilSCORMManifest::$xml_base

Definition at line 38 of file class.ilSCORMManifest.php.

Referenced by getXmlBase().


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