ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 update ()
 
 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

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

References $DIC, $lng, ILIAS\GlobalScreen\Provider\__construct(), ilSCORMObject\setTitle(), and ilSCORMObject\setType().

37  {
38  global $DIC;
39  $lng = $DIC->language();
40 
41  // title should be overrriden by ilSCORMExplorer
42  $this->setTitle($lng->txt("cont_organizations"));
43 
44  parent::__construct($a_id);
45  $this->setType("sos");
46  }
setType(?string $a_type)
global $DIC
Definition: shib_login.php:22
setTitle(string $a_title)
__construct(Container $dic, ilPlugin $plugin)
global $lng
Definition: privfeed.php:31
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMOrganizations::create ( )

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

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

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  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganizations::delete ( )

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

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

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  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ getDefaultOrganization()

ilSCORMOrganizations::getDefaultOrganization ( )

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

References $default_organization.

Referenced by create(), and update().

48  : string
49  {
51  }
+ Here is the caller graph for this function:

◆ read()

ilSCORMOrganizations::read ( )

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

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

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)
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

◆ setDefaultOrganization()

ilSCORMOrganizations::setDefaultOrganization ( string  $a_def_org)

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

Referenced by read().

53  : void
54  {
55  $this->default_organization = $a_def_org;
56  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMOrganizations::update ( )

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

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

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  }
global $DIC
Definition: shib_login.php:22
+ 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: