ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSCORMManifest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 ()
 
 update ()
 
 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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

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

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

38  {
39  parent::__construct($a_id);
40  $this->setType("sma");
41  }
setType(?string $a_type)
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMManifest::create ( )

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

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

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

◆ delete()

ilSCORMManifest::delete ( )

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

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

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  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ getImportId()

ilSCORMManifest::getImportId ( )

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

References $import_id.

Referenced by create(), and update().

43  : string
44  {
45  return $this->import_id;
46  }
+ Here is the caller graph for this function:

◆ getVersion()

ilSCORMManifest::getVersion ( )

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

References $version.

Referenced by create(), and update().

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

◆ getXmlBase()

ilSCORMManifest::getXmlBase ( )

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

References $xml_base.

Referenced by create(), and update().

64  : ?string
65  {
66  return $this->xml_base;
67  }
+ Here is the caller graph for this function:

◆ read()

ilSCORMManifest::read ( )

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

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

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  }
setXmlBase(?string $a_xml_base)
setVersion(?string $a_version)
global $DIC
Definition: feed.php:28
setImportId(string $a_import_id)
+ Here is the call graph for this function:

◆ setImportId()

ilSCORMManifest::setImportId ( string  $a_import_id)

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

References ilSCORMObject\setTitle().

Referenced by read().

48  : void
49  {
50  $this->import_id = $a_import_id;
51  $this->setTitle($a_import_id);
52  }
setTitle(string $a_title)
+ 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.

Referenced by read().

59  : void
60  {
61  $this->version = $a_version;
62  }
+ Here is the caller graph for this function:

◆ setXmlBase()

ilSCORMManifest::setXmlBase ( ?string  $a_xml_base)

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

Referenced by read().

69  : void
70  {
71  $this->xml_base = $a_xml_base;
72  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMManifest::update ( )

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

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

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  }
global $DIC
Definition: feed.php:28
+ 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: