Public Member Functions | Data Fields

ilSCORMOrganizations Class Reference
[Modules/ScormAicc]

SCORM Organizations. More...

Inheritance diagram for ilSCORMOrganizations:
Collaboration diagram for ilSCORMOrganizations:

Public Member Functions

 ilSCORMOrganizations ($a_id=0)
 Constructor.
 getDefaultOrganization ()
 setDefaultOrganization ($a_def_org)
 read ()
 create ()
 Create database record for SCORM object.
 update ()
 Updates database record for SCORM object.
 delete ()

Data Fields

 $default_organization

Detailed Description

SCORM Organizations.

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

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


Member Function Documentation

ilSCORMOrganizations::create (  ) 

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

References getDefaultOrganization(), and ilSCORMObject::getId().

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

                $q = "INSERT INTO sc_organizations (obj_id, default_organization) VALUES ".
                        "(".$ilDB->quote($this->getId()).", ".$ilDB->quote($this->getDefaultOrganization()).")";
                $this->ilias->db->query($q);
        }

Here is the call graph for this function:

ilSCORMOrganizations::delete (  ) 

Reimplemented from ilSCORMObject.

Definition at line 102 of file class.ilSCORMOrganizations.php.

References ilSCORMObject::getId().

        {
                global $ilDB;

                parent::delete();

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

Here is the call graph for this function:

ilSCORMOrganizations::getDefaultOrganization (  ) 

Definition at line 56 of file class.ilSCORMOrganizations.php.

Referenced by create(), and update().

        {
                return $this->default_organization;
        }

Here is the caller graph for this function:

ilSCORMOrganizations::ilSCORMOrganizations ( a_id = 0  ) 

Constructor.

Parameters:
int $a_id Object ID public

Definition at line 45 of file class.ilSCORMOrganizations.php.

References $lng, ilSCORMObject::ilSCORMObject(), ilSCORMObject::setTitle(), and ilSCORMObject::setType().

        {
                global $lng;

                // title should be overrriden by ilSCORMExplorer
                $this->setTitle($lng->txt("cont_organizations"));

                parent::ilSCORMObject($a_id);
                $this->setType("sos");
        }

Here is the call graph for this function:

ilSCORMOrganizations::read (  ) 

Reimplemented from ilSCORMObject.

Definition at line 66 of file class.ilSCORMOrganizations.php.

References ilSCORMObject::getId(), and setDefaultOrganization().

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

                $q = "SELECT * FROM sc_organizations WHERE obj_id = ".$ilDB->quote($this->getId());

                $obj_set = $this->ilias->db->query($q);
                $obj_rec = $obj_set->fetchRow(DB_FETCHMODE_ASSOC);
                $this->setDefaultOrganization($obj_rec["default_organization"]);
        }

Here is the call graph for this function:

ilSCORMOrganizations::setDefaultOrganization ( a_def_org  ) 

Definition at line 61 of file class.ilSCORMOrganizations.php.

Referenced by read().

        {
                $this->default_organization = $a_def_org;
        }

Here is the caller graph for this function:

ilSCORMOrganizations::update (  ) 

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

Definition at line 90 of file class.ilSCORMOrganizations.php.

References getDefaultOrganization(), and ilSCORMObject::getId().

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

                $q = "UPDATE sc_organizations SET ".
                        "default_organization = ".$ilDB->quote($this->getDefaultOrganization())." ".
                        "WHERE obj_id = ".$ilDB->quote($this->getId());
                $this->ilias->db->query($q);
        }

Here is the call graph for this function:


Field Documentation

ilSCORMOrganizations::$default_organization

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


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