19declare(strict_types=1);
36 return array(
"5.1.0");
39 public function getXmlNamespace(
string $a_entity,
string $a_schema_version): string
41 return "http://www.ilias.de/xml/Modules/Scorm2004/" . $a_entity;
47 protected function getTypes(
string $a_entity,
string $a_version): array
49 if ($a_entity ===
"sahs") {
55 "Description" =>
"text",
56 "Editable" =>
"integer",
65 public function readData(
string $a_entity,
string $a_version, array $a_ids): void
69 if (!is_array($a_ids)) {
70 $a_ids = array($a_ids);
74 if ($a_entity ===
"sahs") {
75 $this->data = array();
79 foreach ($a_ids as $sahs_id) {
81 $this->data[] = array(
"Id" => $sahs_id,
146 if ($a_entity ===
"sahs") {
148 if (isset($this->temp_dir[$a_set[
"Id"]]) && is_dir($this->temp_dir[$a_set[
"Id"]])) {
A dataset contains in data in a common structure that can be shared and transformed for different pur...
static delDir(string $a_dir, bool $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static _lookupType(int $id, bool $reference=false)
static _lookupTitle(int $obj_id)
static _lookupDescription(int $obj_id)
Class ilScorm2004DataSet.
readData(string $a_entity, string $a_version, array $a_ids)
Read data from DB.
afterXmlRecordWriting(string $a_entity, string $a_version, array $a_set)
getSupportedVersions()
Note: this is currently used for SCORM authoring lms Get supported versions.
getXmlNamespace(string $a_entity, string $a_schema_version)
getTypes(string $a_entity, string $a_version)