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

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

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

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

◆ delete()

ilSCORMManifest::delete ( )

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

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

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  }
Create styles array
The data for the language used.
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 $ilDB, array, ilSCORMObject\getId(), setImportId(), setVersion(), and setXmlBase().

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)
Create styles array
The data for the language used.
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 113 of file class.ilSCORMManifest.php.

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

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