ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ()
 
 update ()
 
 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 public

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

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

46  {
47  global $lng;
48 
49  // title should be overrriden by ilSCORMExplorer
50  $this->setTitle($lng->txt("cont_organizations"));
51 
52  parent::__construct($a_id);
53  $this->setType("sos");
54  }
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMOrganizations::create ( )

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

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

82  {
83  global $ilDB;
84 
85  parent::create();
86 
87  $ilDB->manipulateF(
88  '
89  INSERT INTO sc_organizations (obj_id, default_organization) VALUES (%s, %s)',
90  array('integer', 'text'),
91  array($this->getId(), $this->getDefaultOrganization())
92  );
93  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganizations::delete ( )

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

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

112  {
113  global $ilDB;
114 
115  parent::delete();
116 
117  $ilDB->manipulateF(
118  'DELETE FROM sc_organizations WHERE obj_id = %s',
119  array('integer'),
120  array($this->getId())
121  );
122  }
Create styles array
The data for the language used.
global $ilDB
+ 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:

◆ read()

ilSCORMOrganizations::read ( )

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

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

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  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ setDefaultOrganization()

ilSCORMOrganizations::setDefaultOrganization (   $a_def_org)

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

Referenced by read().

62  {
63  $this->default_organization = $a_def_org;
64  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMOrganizations::update ( )

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

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

96  {
97  global $ilDB;
98 
100 
101  $ilDB->manipulateF(
102  '
103  UPDATE sc_organizations
104  SET default_organization = %s
105  WHERE obj_id = %s',
106  array('text', 'integer'),
107  array($this->getDefaultOrganization(), $this->getId())
108  );
109  }
Create styles array
The data for the language used.
update($pash, $contents, Config $config)
global $ilDB
+ 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: