ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSCORMOrganizations Class Reference

SCORM Organizations. More...

+ Inheritance diagram for ilSCORMOrganizations:
+ Collaboration diagram for ilSCORMOrganizations:

Public Member Functions

 ilSCORMOrganizations ($a_id=0)
 Constructor. More...
 
 getDefaultOrganization ()
 
 setDefaultOrganization ($a_def_org)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_type)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getSLMId ()
 
 setSLMId ($a_slm_id)
 
 read ()
 
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

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$

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

Member Function Documentation

◆ create()

ilSCORMOrganizations::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

82 {
83 global $ilDB;
84
85 parent::create();
86
87 $ilDB->manipulateF('
88 INSERT INTO sc_organizations (obj_id, default_organization) VALUES (%s, %s)',
89 array('integer', 'text'),
90 array($this->getId(), $this->getDefaultOrganization())
91 );
92 }
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganizations::delete ( )

Reimplemented from ilSCORMObject.

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

110 {
111 global $ilDB;
112
113 parent::delete();
114
115 $ilDB->manipulateF(
116 'DELETE FROM sc_organizations WHERE obj_id = %s',
117 array('integer'),
118 array($this->getId())
119 );
120 }

References $ilDB, and ilSCORMObject\getId().

+ Here is the call graph for this function:

◆ getDefaultOrganization()

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

Constructor.

Parameters
int$a_idObject ID @access public

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

46 {
47 global $lng;
48
49 // title should be overrriden by ilSCORMExplorer
50 $this->setTitle($lng->txt("cont_organizations"));
51
52 parent::ilSCORMObject($a_id);
53 $this->setType("sos");
54 }
global $lng
Definition: privfeed.php:40

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

+ Here is the call graph for this function:

◆ read()

ilSCORMOrganizations::read ( )

Reimplemented from ilSCORMObject.

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

67 {
68 global $ilDB;
69
70 parent::read();
71
72 $obj_set = $ilDB->queryF(
73 'SELECT default_organization FROM sc_organizations WHERE obj_id = %s',
74 array('integer'),
75 array($this->getId())
76 );
77 $obj_rec = $ilDB->fetchAssoc($obj_set);
78 $this->setDefaultOrganization($obj_rec["default_organization"]);
79 }

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

+ Here is the call graph for this function:

◆ setDefaultOrganization()

ilSCORMOrganizations::setDefaultOrganization (   $a_def_org)

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

62 {
63 $this->default_organization = $a_def_org;
64 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilSCORMOrganizations::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

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

95 {
96 global $ilDB;
97
98 parent::update();
99
100 $ilDB->manipulateF('
101 UPDATE sc_organizations
102 SET default_organization = %s
103 WHERE obj_id = %s',
104 array('text', 'integer'),
105 array($this->getDefaultOrganization(), $this->getId())
106 );
107 }

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

+ Here is the call graph for this function:

Field Documentation

◆ $default_organization

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: