ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSCORMManifest Class Reference

SCORM Manifest. More...

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

Public Member Functions

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

Data Fields

 $import_id
 
 $version
 
 $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 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.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMManifest::__construct (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

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

References ilSCORMObject\setType().

48  {
49  parent::__construct($a_id);
50  $this->setType("sma");
51  }
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMManifest::create ( )

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

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

104  {
105  global $DIC;
106  $ilDB = $DIC['ilDB'];
107 
108  parent::create();
109 
110  $ilDB->manipulateF(
111  '
112  INSERT INTO sc_manifest (obj_id, import_id, version, xml_base)
113  VALUES (%s,%s,%s,%s)',
114  array('integer','text','text','text'),
115  array($this->getId(),$this->getImportId(),$this->getVersion(),$this->getXmlBase())
116  );
117  }
global $DIC
Definition: saml.php:7
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilSCORMManifest::delete ( )

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

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

139  {
140  global $DIC;
141  $ilDB = $DIC['ilDB'];
142 
143  parent::delete();
144 
145  $ilDB->manipulateF('DELETE FROM sc_manifest WHERE obj_id = %s', array('integer'), array($this->getId()));
146  }
global $DIC
Definition: saml.php:7
global $ilDB
+ 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().

54  {
55  return $this->import_id;
56  }
+ Here is the caller graph for this function:

◆ getVersion()

ilSCORMManifest::getVersion ( )

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

References $version.

Referenced by create(), and update().

65  {
66  return $this->version;
67  }
+ 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().

75  {
76  return $this->xml_base;
77  }
+ Here is the caller graph for this function:

◆ read()

ilSCORMManifest::read ( )

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

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

85  {
86  global $DIC;
87  $ilDB = $DIC['ilDB'];
88 
89  parent::read();
90 
91  $obj_set = $ilDB->queryF(
92  'SELECT * FROM sc_manifest WHERE obj_id = %s',
93  array('integer'),
94  array($this->getId())
95  );
96  $obj_rec = $ilDB->fetchAssoc($obj_set);
97 
98  $this->setImportId($obj_rec["import_id"]);
99  $this->setVersion($obj_rec["version"]);
100  $this->setXmlBase($obj_rec["xml_base"]);
101  }
global $DIC
Definition: saml.php:7
setImportId($a_import_id)
global $ilDB
+ Here is the call graph for this function:

◆ setImportId()

ilSCORMManifest::setImportId (   $a_import_id)

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

References ilSCORMObject\setTitle().

Referenced by read().

59  {
60  $this->import_id = $a_import_id;
61  $this->setTitle($a_import_id);
62  }
+ 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.

Referenced by read().

70  {
71  $this->version = $a_version;
72  }
+ Here is the caller graph for this function:

◆ setXmlBase()

ilSCORMManifest::setXmlBase (   $a_xml_base)

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

Referenced by read().

80  {
81  $this->xml_base = $a_xml_base;
82  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMManifest::update ( )

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

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

120  {
121  global $DIC;
122  $ilDB = $DIC['ilDB'];
123 
124  parent::update();
125 
126  $ilDB->manipulateF(
127  '
128  UPDATE sc_manifest
129  SET import_id = %s,
130  version = %s,
131  xml_base = %s
132  WHERE obj_id = %s',
133  array('text','text','text','integer'),
134  array($this->getImportId(),$this->getVersion(),$this->getXmlBase(),$this->getId())
135  );
136  }
global $DIC
Definition: saml.php:7
update($pash, $contents, Config $config)
global $ilDB
+ 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: