19declare(strict_types=1);
50 $this->import_id = $a_import_id;
60 $this->structure = $a_structure;
63 public function read(): void
70 $query =
'SELECT import_id, structure FROM sc_organization WHERE obj_id = %s';
71 $obj_set =
$ilDB->queryF(
76 $obj_rec =
$ilDB->fetchAssoc($obj_set);
89 $query =
'INSERT INTO sc_organization (obj_id, import_id, structure) VALUES(%s, %s, %s)';
92 array(
'integer',
'text',
'text'),
104 $query =
'UPDATE sc_organization SET import_id = %s, structure = %s WHERE obj_id = %s';
107 array(
'text',
'text',
'integer'),
112 public function delete():
void
119 $query =
'DELETE FROM sc_organization WHERE obj_id = %s';
123 array($this->
getId())
Parent object for all SCORM objects, that are stored in table scorm_object.
create()
Create database record for SCORM object.
setStructure(?string $a_structure)
update()
Updates database record for SCORM object.
setImportId(string $a_import_id)
__construct(int $a_id=0)
Constructor.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc