ILIAS  Release_3_10_x_branch Revision 61812
 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 15697 2008-01-08 20:04:33Z hschottm

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 ilSCORMObject\getId(), getImportId(), getVersion(), and getXmlBase().

{
global $ilDB;
$q = "INSERT INTO sc_manifest (obj_id, import_id, version, xml_base) VALUES ".
"(".$ilDB->quote($this->getId()).", ".$ilDB->quote($this->getImportId()).
", ".$ilDB->quote($this->getVersion()).", ".$ilDB->quote($this->getXmlBase()).")";
$this->ilias->db->query($q);
}

+ Here is the call graph for this function:

ilSCORMManifest::delete ( )

Reimplemented from ilSCORMObject.

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

References ilSCORMObject\getId().

{
global $ilDB;
$q = "DELETE FROM sc_manifest WHERE obj_id =".$ilDB->quote($this->getId());
$ilDB->query($q);
}

+ 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 DB_FETCHMODE_ASSOC, ilSCORMObject\getId(), setImportId(), setVersion(), and setXmlBase().

{
global $ilDB;
$q = "SELECT * FROM sc_manifest WHERE obj_id = ".$ilDB->quote($this->getId());
$obj_set = $this->ilias->db->query($q);
$obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
$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 111 of file class.ilSCORMManifest.php.

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

{
global $ilDB;
$q = "UPDATE sc_manifest SET ".
"import_id = ".$ilDB->quote($this->getImportId()).", ".
"version = ".$ilDB->quote($this->getVersion()).", ".
"xml_base = ".$ilDB->quote($this->getXmlBase())." ".
"WHERE obj_id = ".$ilDB->quote($this->getId());
$this->ilias->db->query($q);
}

+ 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: