ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSCORMManifest Class Reference

SCORM Manifest. More...

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

Public Member Functions

 __construct (int $a_id=0)
 
 getImportId ()
 
 setImportId (string $a_import_id)
 
 getVersion ()
 
 setVersion (?string $a_version)
 
 getXmlBase ()
 
 setXmlBase (?string $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 (int $a_id=0)
 Constructor. More...
 
 getId ()
 
 setId (int $a_id)
 
 getType ()
 
 setType (?string $a_type)
 
 getTitle ()
 
 setTitle (string $a_title)
 
 getSLMId ()
 
 setSLMId (int $a_slm_id)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 

Data Fields

string $import_id
 
string $version = null
 
string $xml_base = null
 
- Data Fields inherited from ilSCORMObject
int $id
 
string $title = ""
 
string $type = null
 
int $slm_id
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSCORMObject
static _lookupPresentableItems (int $a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
static & _getInstance (int $a_id, int $a_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 28 of file class.ilSCORMManifest.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMManifest::__construct ( int  $a_id = 0)
Parameters
int$a_idObject ID

Reimplemented from ilSCORMObject.

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

38 {
40 $this->setType("sma");
41 }
setType(?string $a_type)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ilSCORMObject\setType().

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMManifest::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

93 : void
94 {
95 global $DIC;
96 $ilDB = $DIC->database();
97
98 parent::create();
99
100 $ilDB->manipulateF(
101 '
102 INSERT INTO sc_manifest (obj_id, import_id, version, xml_base)
103 VALUES (%s,%s,%s,%s)',
104 array('integer','text','text','text'),
105 array($this->getId(),$this->getImportId(),$this->getVersion(),$this->getXmlBase())
106 );
107 }
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMManifest::delete ( )

Reimplemented from ilSCORMObject.

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

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

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

+ Here is the call graph for this function:

◆ getImportId()

ilSCORMManifest::getImportId ( )

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

43 : string
44 {
45 return $this->import_id;
46 }

References $import_id.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getVersion()

ilSCORMManifest::getVersion ( )

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

54 : ?string
55 {
56 return $this->version;
57 }

References $version.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getXmlBase()

ilSCORMManifest::getXmlBase ( )

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

64 : ?string
65 {
66 return $this->xml_base;
67 }

References $xml_base.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMManifest::read ( )
Returns
void

Reimplemented from ilSCORMObject.

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

74 : void
75 {
76 global $DIC;
77 $ilDB = $DIC->database();
78
79 parent::read();
80
81 $obj_set = $ilDB->queryF(
82 'SELECT * FROM sc_manifest WHERE obj_id = %s',
83 array('integer'),
84 array($this->getId())
85 );
86 $obj_rec = $ilDB->fetchAssoc($obj_set);
87
88 $this->setImportId($obj_rec["import_id"]);
89 $this->setVersion($obj_rec["version"]);
90 $this->setXmlBase($obj_rec["xml_base"]);
91 }
setImportId(string $a_import_id)
setVersion(?string $a_version)
setXmlBase(?string $a_xml_base)

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

+ Here is the call graph for this function:

◆ setImportId()

ilSCORMManifest::setImportId ( string  $a_import_id)

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

48 : void
49 {
50 $this->import_id = $a_import_id;
51 $this->setTitle($a_import_id);
52 }
setTitle(string $a_title)

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 ( ?string  $a_version)

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

59 : void
60 {
61 $this->version = $a_version;
62 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setXmlBase()

ilSCORMManifest::setXmlBase ( ?string  $a_xml_base)

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

69 : void
70 {
71 $this->xml_base = $a_xml_base;
72 }

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 109 of file class.ilSCORMManifest.php.

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

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

+ Here is the call graph for this function:

Field Documentation

◆ $import_id

string ilSCORMManifest::$import_id

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

Referenced by getImportId().

◆ $version

string ilSCORMManifest::$version = null

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

Referenced by getVersion().

◆ $xml_base

string ilSCORMManifest::$xml_base = null

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

Referenced by getXmlBase().


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