ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSCORMOrganization Class Reference

SCORM Organization. More...

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

Public Member Functions

 ilSCORMOrganization ($a_id=0)
 Constructor. More...
 
 getImportId ()
 
 setImportId ($a_import_id)
 
 getStructure ()
 
 setStructure ($a_structure)
 
 read ()
 
 create ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 delete ()
 
- Public Member Functions inherited from ilSCORMObject
 ilSCORMObject ($a_id=0)
 Constructor. More...
 
 getId ()
 
 setId ($a_id)
 
 getType ()
 
 setType ($a_type)
 
 getTitle ()
 
 setTitle ($a_title)
 
 getSLMId ()
 
 setSLMId ($a_slm_id)
 
 read ()
 
 _lookupPresentableItems ($a_slm_id)
 Count number of presentable SCOs/Assets of SCORM learning module. More...
 
 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
 

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.

Member Function Documentation

◆ create()

ilSCORMOrganization::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

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 }
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganization::delete ( )

Reimplemented from ilSCORMObject.

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

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 }

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

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

◆ ilSCORMOrganization()

ilSCORMOrganization::ilSCORMOrganization (   $a_id = 0)

Constructor.

Parameters
int$a_idObject ID @access public

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

47 {
48 parent::ilSCORMObject($a_id);
49 $this->setType('sor');
50 }

References ilSCORMObject\setType().

+ Here is the call graph for this function:

◆ read()

ilSCORMOrganization::read ( )

Reimplemented from ilSCORMObject.

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

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 }

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

+ Here is the call graph for this function:

◆ setImportId()

ilSCORMOrganization::setImportId (   $a_import_id)

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

58 {
59 $this->import_id = $a_import_id;
60 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setStructure()

ilSCORMOrganization::setStructure (   $a_structure)

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

68 {
69 $this->structure = $a_structure;
70 }

Referenced by read().

+ Here is the caller graph for this function:

◆ update()

ilSCORMOrganization::update ( )

Updates database record for SCORM object.

Reimplemented from ilSCORMObject.

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

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 }

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

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