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"]);
getDirectDataFromQuery($a_query, $a_convert_to_leading_upper=true, $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
getSupportedVersions()
Get supported versions.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
Create styles array
The data for the language used.
getTypes($a_entity, $a_version)
Get field types for entity.
A dataset contains in data in a common structure that can be shared and transformed for different pur...