4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
26 return array(
"4.3.0");
37 return "http://www.ilias.de/xml/Services/Rating/".$a_entity;
46 protected function getTypes($a_entity, $a_version)
48 if ($a_entity ==
"rating_category")
55 "ParentId" =>
"integer",
57 "Description" =>
"text",
69 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
73 if (!is_array($a_ids))
75 $a_ids = array($a_ids);
78 if ($a_entity ==
"rating_category")
85 " FROM il_rating_cat".
86 " WHERE ".$ilDB->in(
"parent_id", $a_ids,
false,
"integer"));
106 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
113 case "rating_category":
114 if($parent_id = $a_mapping->getMapping(
'Services/Rating',
'rating_category_parent_id', $a_rec[
'ParentId']))
116 include_once(
"./Services/Rating/classes/class.ilRatingCategory.php");
118 $newObj->setParentId($parent_id);
121 $newObj->setTitle($a_rec[
"Title"]);
122 $newObj->setDescription($a_rec[
"Description"]);
123 $newObj->setPosition($a_rec[
"Pos"]);