ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSCORMOrganizations Class Reference

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

 $default_organization
- Data Fields inherited from ilSCORMObject
 $id
 $title
 $type
 $slm_id

Detailed Description

SCORM Organizations.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilSCORMOrganizations.php 21314 2009-08-27 11:57:58Z mjansen

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 81 of file class.ilSCORMOrganizations.php.

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

{
global $ilDB;
$ilDB->manipulateF('
INSERT INTO sc_organizations (obj_id, default_organization) VALUES (%s, %s)',
array('integer', 'text'),
array($this->getId(), $this->getDefaultOrganization())
);
}

+ Here is the call graph for this function:

ilSCORMOrganizations::delete ( )

Reimplemented from ilSCORMObject.

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

References $ilDB, and ilSCORMObject\getId().

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

+ Here is the call graph for this function:

ilSCORMOrganizations::getDefaultOrganization ( )

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

References $default_organization.

Referenced by create(), and update().

+ Here is the caller graph for this function:

ilSCORMOrganizations::ilSCORMOrganizations (   $a_id = 0)

Constructor.

Parameters
int$a_idObject 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"));
$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 $ilDB, ilSCORMObject\getId(), and setDefaultOrganization().

{
global $ilDB;
$obj_set = $ilDB->queryF(
'SELECT default_organization FROM sc_organizations WHERE obj_id = %s',
array('integer'),
array($this->getId())
);
$obj_rec = $ilDB->fetchAssoc($obj_set);
$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 94 of file class.ilSCORMOrganizations.php.

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

{
global $ilDB;
$ilDB->manipulateF('
UPDATE sc_organizations
SET default_organization = %s
WHERE obj_id = %s',
array('text', 'integer'),
array($this->getDefaultOrganization(), $this->getId())
);
}

+ Here is the call graph for this function:

Field Documentation

ilSCORMOrganizations::$default_organization

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

Referenced by getDefaultOrganization().


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