ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMManifest Class Reference

SCORM Manifest. More...

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

Public Member Functions

 ilSCORMManifest ($a_id=0)
 Constructor.
 getImportId ()
 setImportId ($a_import_id)
 getVersion ()
 setVersion ($a_version)
 getXmlBase ()
 setXmlBase ($a_xml_base)
 read ()
 create ()
 Create database record for SCORM object.
 update ()
 Updates database record for SCORM object.
 delete ()
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor.
 getId ()
 setId ($a_id)
 getType ()
 setType ($a_type)
 getTitle ()
 setTitle ($a_title)
 getSLMId ()
 setSLMId ($a_slm_id)
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module.
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class

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:
class.ilSCORMManifest.php 20408 2009-07-03 10:13:22Z nkrzywon

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

Member Function Documentation

ilSCORMManifest::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

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

{
global $ilDB;
$ilDB->manipulateF('
INSERT INTO sc_manifest (obj_id, import_id, version, xml_base)
VALUES (%s,%s,%s,%s)',
array('integer','text','text','text'),
array($this->getId(),$this->getImportId(),$this->getVersion(),$this->getXmlBase()));
}

+ Here is the call graph for this function:

ilSCORMManifest::delete ( )

Reimplemented from ilSCORMObject.

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

References $ilDB, and ilSCORMObject\getId().

{
global $ilDB;
$ilDB->manipulateF('DELETE FROM sc_manifest WHERE obj_id = %s', array('integer'),array($this->getId()));
}

+ Here is the call graph for this function:

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:

ilSCORMManifest::getVersion ( )

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

References $version.

Referenced by create(), and update().

{
}

+ Here is the caller graph for this function:

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 (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

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

References ilSCORMObject\ilSCORMObject(), and ilSCORMObject\setType().

{
$this->setType("sma");
}

+ Here is the call graph for this function:

ilSCORMManifest::read ( )

Reimplemented from ilSCORMObject.

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

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

{
global $ilDB;
$obj_set = $ilDB->queryF('SELECT * FROM sc_manifest WHERE obj_id = %s',
array('integer'),array($this->getId()));
$obj_rec = $ilDB->fetchAssoc($obj_set);
$this->setImportId($obj_rec["import_id"]);
$this->setVersion($obj_rec["version"]);
$this->setXmlBase($obj_rec["xml_base"]);
}

+ Here is the call graph for this function:

ilSCORMManifest::setImportId (   $a_import_id)

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

References ilSCORMObject\setTitle().

Referenced by read().

{
$this->import_id = $a_import_id;
$this->setTitle($a_import_id);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilSCORMManifest::setVersion (   $a_version)

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

Referenced by read().

{
$this->version = $a_version;
}

+ Here is the caller graph for this function:

ilSCORMManifest::setXmlBase (   $a_xml_base)

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

Referenced by read().

{
$this->xml_base = $a_xml_base;
}

+ Here is the caller graph for this function:

ilSCORMManifest::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

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

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

{
global $ilDB;
$ilDB->manipulateF('
UPDATE sc_manifest
SET import_id = %s,
version = %s,
xml_base = %s
WHERE obj_id = %s',
array('text','text','text','integer'),
array($this->getImportId(),$this->getVersion(),$this->getXmlBase(),$this->getId()));
}

+ Here is the call graph for this function:

Field Documentation

ilSCORMManifest::$import_id

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

Referenced by getImportId().

ilSCORMManifest::$version

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

Referenced by getVersion().

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: