Public Member Functions | Data Fields

ilSCORMManifest Class Reference
[Modules/ScormAicc]

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 ()

Data Fields

 $import_id
 $version
 $xml_base

Detailed Description

SCORM Manifest.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
Id:
class.ilSCORMManifest.php 13084 2007-01-22 14:57:43Z akill

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;
                
                parent::create();

                $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;

                parent::delete();

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

Referenced by create(), and update().

        {
                return $this->import_id;
        }

Here is the caller graph for this function:

ilSCORMManifest::getVersion (  ) 

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

Referenced by create(), and update().

        {
                return $this->version;
        }

Here is the caller graph for this function:

ilSCORMManifest::getXmlBase (  ) 

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

Referenced by create(), and update().

        {
                return $this->xml_base;
        }

Here is the caller graph for this function:

ilSCORMManifest::ilSCORMManifest ( a_id = 0  ) 

Constructor.

Parameters:
int $a_id Object ID public

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

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

        {
                parent::ilSCORMObject($a_id);
                $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 ilSCORMObject::getId(), setImportId(), setVersion(), and setXmlBase().

        {
                global $ilDB;
                
                parent::read();

                $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;
                
                parent::update();

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

ilSCORMManifest::$version

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

ilSCORMManifest::$xml_base

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


The documentation for this class was generated from the following file: