ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSCORMOrganizations Class Reference

SCORM Organizations. More...

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

Public Member Functions

 __construct ($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
 __construct ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_type)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getSLMId ()
 
 setSLMId ($a_slm_id)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 

Data Fields

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

Additional Inherited Members

- Static Public Member Functions inherited from ilSCORMObject
static _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
static & _getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMOrganizations::__construct (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

Reimplemented from ilSCORMObject.

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

46 {
47 global $DIC;
48 $lng = $DIC['lng'];
49
50 // title should be overrriden by ilSCORMExplorer
51 $this->setTitle($lng->txt("cont_organizations"));
52
53 parent::__construct($a_id);
54 $this->setType("sos");
55 }
global $DIC
Definition: saml.php:7
$lng

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

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMOrganizations::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

84 {
85 global $DIC;
86 $ilDB = $DIC['ilDB'];
87
88 parent::create();
89
90 $ilDB->manipulateF(
91 '
92 INSERT INTO sc_organizations (obj_id, default_organization) VALUES (%s, %s)',
93 array('integer', 'text'),
94 array($this->getId(), $this->getDefaultOrganization())
95 );
96 }
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganizations::delete ( )

Reimplemented from ilSCORMObject.

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

116 {
117 global $DIC;
118 $ilDB = $DIC['ilDB'];
119
120 parent::delete();
121
122 $ilDB->manipulateF(
123 'DELETE FROM sc_organizations WHERE obj_id = %s',
124 array('integer'),
125 array($this->getId())
126 );
127 }

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

+ Here is the call graph for this function:

◆ getDefaultOrganization()

ilSCORMOrganizations::getDefaultOrganization ( )

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

References $default_organization.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMOrganizations::read ( )

Reimplemented from ilSCORMObject.

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

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

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

+ Here is the call graph for this function:

◆ setDefaultOrganization()

ilSCORMOrganizations::setDefaultOrganization (   $a_def_org)

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

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

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

99 {
100 global $DIC;
101 $ilDB = $DIC['ilDB'];
102
104
105 $ilDB->manipulateF(
106 '
107 UPDATE sc_organizations
108 SET default_organization = %s
109 WHERE obj_id = %s',
110 array('text', 'integer'),
111 array($this->getDefaultOrganization(), $this->getId())
112 );
113 }
update($pash, $contents, Config $config)

References $DIC, $ilDB, getDefaultOrganization(), ilSCORMObject\getId(), and League\Flysystem\Adapter\Polyfill\update().

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