39 $this->notes_manager =
$DIC->notes()->internal()->domain()->notes();
40 $this->notes_data =
$DIC->notes()->internal()->data();
45 return array(
"4.3.0");
48 protected function getXmlNamespace(
string $a_entity,
string $a_schema_version): string
50 return "https://www.ilias.de/xml/Services/Notes/" . $a_entity;
58 if ($a_entity ===
"user_notes") {
63 "RepObjId" =>
"integer",
67 "Author" =>
"integer",
68 "CreationDate" =>
"timestamp",
72 "NoRepository" =>
"integer"
87 if ($a_entity ===
"user_notes") {
90 $this->getDirectDataFromQuery(
"SELECT id, rep_obj_id, obj_id, obj_type, type, " .
91 " author, note_text, creation_date, label, subject, no_repository " .
94 $ilDB->in(
"author", $a_ids,
false,
"integer") .
95 " AND obj_type = " .
$ilDB->quote(
"pd",
"text"));
106 string $a_schema_version
108 $a_rec = $this->stripTags($a_rec);
111 $usr_id = $a_mapping->
getMapping(
"Services/User",
"usr", $a_rec[
"Author"]);
115 if ((
int) $a_rec[
"RepObjId"] === 0 &&
116 $a_rec[
"ObjId"] == $a_rec[
"Author"] &&
117 (
int) $a_rec[
"Type"] === Note::PRIVATE &&
118 $a_rec[
"ObjType"] ===
"pd") {
119 $context = $this->notes_data->context(
124 $note = $this->notes_data->note(
130 $a_rec[
"CreationDate"]
132 $this->notes_manager->createNote(
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...
getMapping(string $a_comp, string $a_entity, string $a_old_id)
readData(string $a_entity, string $a_version, array $a_ids)
Read data from DB.
getTypes(string $a_entity, string $a_version)
Get (abstract) types for (abstract) field names.
importRecord(string $a_entity, array $a_types, array $a_rec, ilImportMapping $a_mapping, string $a_schema_version)
Needs to be overwritten for import use case.
ILIAS Notes InternalDataService $notes_data
ILIAS Notes NotesManager $notes_manager
getXmlNamespace(string $a_entity, string $a_schema_version)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc