ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilSCORMOrganization Class Reference

SCORM Organization. More...

+ Inheritance diagram for ilSCORMOrganization:
+ Collaboration diagram for ilSCORMOrganization:

Public Member Functions

 __construct ($a_id=0)
 Constructor. More...
 
 getImportId ()
 
 setImportId ($a_import_id)
 
 getStructure ()
 
 setStructure ($a_structure)
 
 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 ()
 
_getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class More...
 

Data Fields

 $import_id
 
 $structure
 
- 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...
 

Detailed Description

SCORM Organization.

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.ilSCORMOrganization.php.

Constructor & Destructor Documentation

◆ __construct()

ilSCORMOrganization::__construct (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID public

Definition at line 46 of file class.ilSCORMOrganization.php.

References ilSCORMObject\setType().

47  {
48  parent::__construct($a_id);
49  $this->setType('sor');
50  }
+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMOrganization::create ( )

Definition at line 90 of file class.ilSCORMOrganization.php.

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

91  {
92  global $ilDB;
93 
94  parent::create();
95 
96  $query = 'INSERT INTO sc_organization (obj_id, import_id, structure) VALUES(%s, %s, %s)';
97  $ilDB->manipulateF(
98  $query,
99  array('integer', 'text', 'text'),
100  array($this->getId(), $this->getImportId(), $this->getStructure())
101  );
102  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganization::delete ( )

Definition at line 118 of file class.ilSCORMOrganization.php.

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

119  {
120  global $ilDB;
121 
122  parent::delete();
123 
124  $query = 'DELETE FROM sc_organization WHERE obj_id = %s';
125  $ilDB->manipulateF(
126  $query,
127  array('integer'),
128  array($this->getId())
129  );
130  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ getImportId()

ilSCORMOrganization::getImportId ( )

Definition at line 52 of file class.ilSCORMOrganization.php.

References $import_id.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getStructure()

ilSCORMOrganization::getStructure ( )

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

References $structure.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMOrganization::read ( )

Definition at line 72 of file class.ilSCORMOrganization.php.

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

73  {
74  global $ilDB;
75 
76  parent::read();
77 
78  $query = 'SELECT import_id, structure FROM sc_organization WHERE obj_id = %s';
79  $obj_set = $ilDB->queryF(
80  $query,
81  array('integer'),
82  array($this->getId())
83  );
84  $obj_rec = $ilDB->fetchAssoc($obj_set);
85 
86  $this->setImportId($obj_rec['import_id']);
87  $this->setStructure($obj_rec['structure']);
88  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ setImportId()

ilSCORMOrganization::setImportId (   $a_import_id)

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

Referenced by read().

58  {
59  $this->import_id = $a_import_id;
60  }
+ Here is the caller graph for this function:

◆ setStructure()

ilSCORMOrganization::setStructure (   $a_structure)

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

Referenced by read().

68  {
69  $this->structure = $a_structure;
70  }
+ Here is the caller graph for this function:

◆ update()

ilSCORMOrganization::update ( )

Definition at line 104 of file class.ilSCORMOrganization.php.

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

105  {
106  global $ilDB;
107 
108  parent::update();
109 
110  $query = 'UPDATE sc_organization SET import_id = %s, structure = %s WHERE obj_id = %s';
111  $ilDB->manipulateF(
112  $query,
113  array('text', 'text', 'integer'),
114  array($this->getImportId(), $this->getStructure(), $this->getId())
115  );
116  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

Field Documentation

◆ $import_id

ilSCORMOrganization::$import_id

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

Referenced by getImportId().

◆ $structure

ilSCORMOrganization::$structure

Definition at line 37 of file class.ilSCORMOrganization.php.

Referenced by getStructure().


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