ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSCORMOrganizations Class Reference

SCORM Organizations. More...

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

Public Member Functions

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

Data Fields

string $default_organization
 
- Data Fields inherited from ilSCORMObject
int $id
 
string $title = ""
 
string $type = null
 
int $slm_id
 

Additional Inherited Members

- Static Public Member Functions inherited from ilSCORMObject
static _lookupPresentableItems (int $a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
static & _getInstance (int $a_id, int $a_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 28 of file class.ilSCORMOrganizations.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMOrganizations::__construct ( int  $a_id = 0)

Constructor.

Parameters
int$a_idObject ID

Reimplemented from ilSCORMObject.

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

37 {
38 global $DIC;
39 $lng = $DIC->language();
40
41 // title should be overrriden by ilSCORMExplorer
42 $this->setTitle($lng->txt("cont_organizations"));
43
45 $this->setType("sos");
46 }
setTitle(string $a_title)
setType(?string $a_type)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, ILIAS\GlobalScreen\Provider\__construct(), 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 74 of file class.ilSCORMOrganizations.php.

74 : void
75 {
76 global $DIC;
77 $ilDB = $DIC->database();
78
79 parent::create();
80
81 $ilDB->manipulateF(
82 '
83 INSERT INTO sc_organizations (obj_id, default_organization) VALUES (%s, %s)',
84 array('integer', 'text'),
85 array($this->getId(), $this->getDefaultOrganization())
86 );
87 }

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganizations::delete ( )

Reimplemented from ilSCORMObject.

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

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

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

+ Here is the call graph for this function:

◆ getDefaultOrganization()

ilSCORMOrganizations::getDefaultOrganization ( )

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

48 : string
49 {
51 }

References $default_organization.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMOrganizations::read ( )
Returns
void

Reimplemented from ilSCORMObject.

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

58 : void
59 {
60 global $DIC;
61 $ilDB = $DIC->database();
62
63 parent::read();
64
65 $obj_set = $ilDB->queryF(
66 'SELECT default_organization FROM sc_organizations WHERE obj_id = %s',
67 array('integer'),
68 array($this->getId())
69 );
70 $obj_rec = $ilDB->fetchAssoc($obj_set);
71 $this->setDefaultOrganization($obj_rec["default_organization"] ?? '');
72 }
setDefaultOrganization(string $a_def_org)

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

+ Here is the call graph for this function:

◆ setDefaultOrganization()

ilSCORMOrganizations::setDefaultOrganization ( string  $a_def_org)

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

53 : void
54 {
55 $this->default_organization = $a_def_org;
56 }

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

89 : void
90 {
91 global $DIC;
92 $ilDB = $DIC->database();
93
94 parent::update();
95
96 $ilDB->manipulateF(
97 '
98 UPDATE sc_organizations
99 SET default_organization = %s
100 WHERE obj_id = %s',
101 array('text', 'integer'),
102 array($this->getDefaultOrganization(), $this->getId())
103 );
104 }

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

+ Here is the call graph for this function:

Field Documentation

◆ $default_organization

string ilSCORMOrganizations::$default_organization

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

Referenced by getDefaultOrganization().


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