ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSCORMOrganization Class Reference

SCORM Organization. More...

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

Public Member Functions

 __construct (int $a_id=0)
 Constructor. More...
 
 getImportId ()
 
 setImportId (string $a_import_id)
 
 getStructure ()
 
 setStructure (?string $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 (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 $import_id
 
string $structure = null
 
- 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 Organization.

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

Constructor & Destructor Documentation

◆ __construct()

ilSCORMOrganization::__construct ( int  $a_id = 0)

Constructor.

Parameters
int$a_idObject ID

Reimplemented from ilSCORMObject.

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

38 {
40 $this->setType('sor');
41 }
setType(?string $a_type)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and 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 82 of file class.ilSCORMOrganization.php.

82 : void
83 {
84 global $DIC;
85 $ilDB = $DIC->database();
86
87 parent::create();
88
89 $query = 'INSERT INTO sc_organization (obj_id, import_id, structure) VALUES(%s, %s, %s)';
90 $ilDB->manipulateF(
91 $query,
92 array('integer', 'text', 'text'),
93 array($this->getId(), $this->getImportId(), $this->getStructure())
94 );
95 }
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

◆ delete()

ilSCORMOrganization::delete ( )

Reimplemented from ilSCORMObject.

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

112 : void
113 {
114 global $DIC;
115 $ilDB = $DIC->database();
116
117 parent::delete();
118
119 $query = 'DELETE FROM sc_organization WHERE obj_id = %s';
120 $ilDB->manipulateF(
121 $query,
122 array('integer'),
123 array($this->getId())
124 );
125 }

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

+ Here is the call graph for this function:

◆ getImportId()

ilSCORMOrganization::getImportId ( )

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

43 : string
44 {
45 return $this->import_id;
46 }

References $import_id.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ getStructure()

ilSCORMOrganization::getStructure ( )

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

53 : ?string
54 {
55 return $this->structure;
56 }

References $structure.

Referenced by create(), and update().

+ Here is the caller graph for this function:

◆ read()

ilSCORMOrganization::read ( )
Returns
void

Reimplemented from ilSCORMObject.

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

63 : void
64 {
65 global $DIC;
66 $ilDB = $DIC->database();
67
68 parent::read();
69
70 $query = 'SELECT import_id, structure FROM sc_organization WHERE obj_id = %s';
71 $obj_set = $ilDB->queryF(
72 $query,
73 array('integer'),
74 array($this->getId())
75 );
76 $obj_rec = $ilDB->fetchAssoc($obj_set);
77
78 $this->setImportId($obj_rec['import_id']);
79 $this->setStructure($obj_rec['structure']);
80 }
setStructure(?string $a_structure)
setImportId(string $a_import_id)

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

+ Here is the call graph for this function:

◆ setImportId()

ilSCORMOrganization::setImportId ( string  $a_import_id)

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

48 : void
49 {
50 $this->import_id = $a_import_id;
51 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setStructure()

ilSCORMOrganization::setStructure ( ?string  $a_structure)

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

58 : void
59 {
60 $this->structure = $a_structure;
61 }

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 97 of file class.ilSCORMOrganization.php.

97 : void
98 {
99 global $DIC;
100 $ilDB = $DIC->database();
101
102 parent::update();
103
104 $query = 'UPDATE sc_organization SET import_id = %s, structure = %s WHERE obj_id = %s';
105 $ilDB->manipulateF(
106 $query,
107 array('text', 'text', 'integer'),
108 array($this->getImportId(), $this->getStructure(), $this->getId())
109 );
110 }

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

+ Here is the call graph for this function:

Field Documentation

◆ $import_id

string ilSCORMOrganization::$import_id

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

Referenced by getImportId().

◆ $structure

string ilSCORMOrganization::$structure = null

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

Referenced by getStructure().


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