ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 ()
 Create database record for SCORM object. More...
 
 update ()
 Updates database record for SCORM object. More...
 
 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

 $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...
 
static & _getInstance ($a_id, $a_slm_id)
 get instance of specialized GUI class 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 @access public

Reimplemented from ilSCORMObject.

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

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

References ilSCORMObject\setType().

+ Here is the call graph for this function:

Member Function Documentation

◆ create()

ilSCORMOrganization::create ( )

Create database record for SCORM object.

Reimplemented from ilSCORMObject.

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

92 {
93 global $DIC;
94 $ilDB = $DIC['ilDB'];
95
96 parent::create();
97
98 $query = 'INSERT INTO sc_organization (obj_id, import_id, structure) VALUES(%s, %s, %s)';
99 $ilDB->manipulateF(
100 $query,
101 array('integer', 'text', 'text'),
102 array($this->getId(), $this->getImportId(), $this->getStructure())
103 );
104 }
$query
global $DIC
Definition: saml.php:7
global $ilDB

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganization::delete ( )

Reimplemented from ilSCORMObject.

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

122 {
123 global $DIC;
124 $ilDB = $DIC['ilDB'];
125
126 parent::delete();
127
128 $query = 'DELETE FROM sc_organization WHERE obj_id = %s';
129 $ilDB->manipulateF(
130 $query,
131 array('integer'),
132 array($this->getId())
133 );
134 }

References $DIC, $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:

◆ read()

ilSCORMOrganization::read ( )

Reimplemented from ilSCORMObject.

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

73 {
74 global $DIC;
75 $ilDB = $DIC['ilDB'];
76
77 parent::read();
78
79 $query = 'SELECT import_id, structure FROM sc_organization WHERE obj_id = %s';
80 $obj_set = $ilDB->queryF(
81 $query,
82 array('integer'),
83 array($this->getId())
84 );
85 $obj_rec = $ilDB->fetchAssoc($obj_set);
86
87 $this->setImportId($obj_rec['import_id']);
88 $this->setStructure($obj_rec['structure']);
89 }

References $DIC, $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 106 of file class.ilSCORMOrganization.php.

107 {
108 global $DIC;
109 $ilDB = $DIC['ilDB'];
110
112
113 $query = 'UPDATE sc_organization SET import_id = %s, structure = %s WHERE obj_id = %s';
114 $ilDB->manipulateF(
115 $query,
116 array('text', 'text', 'integer'),
117 array($this->getImportId(), $this->getStructure(), $this->getId())
118 );
119 }
update($pash, $contents, Config $config)

References $DIC, $ilDB, $query, ilSCORMObject\getId(), getImportId(), getStructure(), and League\Flysystem\Adapter\Polyfill\update().

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