31 return array(
"4.3.0");
37 protected function getXmlNamespace(
string $a_entity,
string $a_schema_version): string
39 return "https://www.ilias.de/xml/Services/Rating/" . $a_entity;
45 protected function getTypes(
string $a_entity,
string $a_version): array
47 if ($a_entity ==
"rating_category") {
52 "ParentId" =>
"integer",
54 "Description" =>
"text",
64 public function readData(
string $a_entity,
string $a_version, array $a_ids): void
68 if (!is_array($a_ids)) {
69 $a_ids = array($a_ids);
72 if ($a_entity ==
"rating_category") {
77 " FROM il_rating_cat" .
78 " WHERE " .
$ilDB->in(
"parent_id", $a_ids,
false,
"integer"));
98 string $a_schema_version
102 case "rating_category":
103 if ($parent_id = $a_mapping->
getMapping(
'Services/Rating',
'rating_category_parent_id', $a_rec[
'ParentId'])) {
105 $newObj->setParentId($parent_id);
108 $newObj->setTitle($a_rec[
"Title"]);
109 $newObj->setDescription($a_rec[
"Description"]);
110 $newObj->setPosition($a_rec[
"Pos"]);
getDependencies(string $a_entity, string $a_version, ?array $a_rec=null, ?array $a_ids=null)
importRecord(string $a_entity, array $a_types, array $a_rec, ilImportMapping $a_mapping, string $a_schema_version)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTypes(string $a_entity, string $a_version)
readData(string $a_entity, string $a_version, array $a_ids)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
getDirectDataFromQuery(string $a_query, bool $a_convert_to_leading_upper=true, bool $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlNamespace(string $a_entity, string $a_schema_version)
stripTags(array $rec, array $omit_keys=[])
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...