3 declare(strict_types=1);
    52     public function setId(
int $a_id): void
    62     public function setType(?
string $a_type): void
    64         $this->type = $a_type;
    72     public function setTitle(
string $a_title): void
    74         $this->title = $a_title;
    84         $this->slm_id = $a_slm_id;
    90     public function read(): void
    93         $ilDB = $DIC->database();
    95         $obj_set = 
$ilDB->queryF(
    96             'SELECT * FROM scorm_object WHERE obj_id = %s',
   100         $obj_rec = 
$ilDB->fetchAssoc($obj_set);
   102         $this->
setType($obj_rec[
"c_type"]);
   103         $this->
setSLMId((
int) $obj_rec[
"slm_id"]);
   112         $ilDB = $DIC->database();
   114         $set = 
$ilDB->queryF(
   117                         FROM scorm_object sob, sc_item sit   118                         WHERE sob.slm_id = %s   119                         AND sob.obj_id = sit.obj_id   120                         AND sit.identifierref IS NOT NULL",
   125         while ($rec = 
$ilDB->fetchAssoc($set)) {
   126             $items[] = $rec[
"id"];
   138         $ilDB = $DIC->database();
   140         $nextId = 
$ilDB->nextId(
'scorm_object');
   141         $this->
setId($nextId);
   145         INSERT INTO scorm_object (obj_id,title, c_type, slm_id)    146         VALUES (%s,%s,%s,%s) ',
   147             array(
'integer',
'text',
'text',
'integer'),
   158         $ilDB = $DIC->database();
   167             array(
'text',
'text',
'integer',
'integer'),
   172     public function delete(): 
void   175         $ilDB = $DIC->database();
   177             'DELETE FROM scorm_object WHERE obj_id = %s',
   179             array($this->
getId())
   186         $ilDB = $DIC->database();
   188         $sc_set = 
$ilDB->queryF(
   190                         SELECT c_type FROM scorm_object    193             array(
'integer',
'integer'),
   194             array($a_id, $a_slm_id)
   196         $sc_rec = 
$ilDB->fetchAssoc($sc_set);
   198         switch ($sc_rec[
"c_type"]) {
 
__construct(int $a_id=0)
Constructor. 
 
static _lookupPresentableItems(int $a_slm_id)
Count number of presentable SCOs/Assets of SCORM learning module. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
create()
Create database record for SCORM object. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setTitle(string $a_title)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
update()
Updates database record for SCORM object. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static & _getInstance(int $a_id, int $a_slm_id)