4include_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") {
 
   53                        "ParentId" => 
"integer",
 
   55                        "Description" => 
"text",
 
   67    public function readData($a_entity, $a_version, $a_ids, $a_field = 
"")
 
   71        if (!is_array($a_ids)) {
 
   72            $a_ids = array($a_ids);
 
   75        if ($a_entity == 
"rating_category") {
 
   80                        " FROM il_rating_cat" .
 
   81                        " WHERE " . 
$ilDB->in(
"parent_id", $a_ids, 
false, 
"integer"));
 
  101    public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
 
  107            case "rating_category":
 
  108                if ($parent_id = $a_mapping->getMapping(
'Services/Rating', 
'rating_category_parent_id', $a_rec[
'ParentId'])) {
 
  109                    include_once(
"./Services/Rating/classes/class.ilRatingCategory.php");
 
  111                    $newObj->setParentId($parent_id);
 
  114                    $newObj->setTitle($a_rec[
"Title"]);
 
  115                    $newObj->setDescription($a_rec[
"Description"]);
 
  116                    $newObj->setPosition($a_rec[
"Pos"]);
 
An exception for terminatinating execution or to throw for unit testing.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
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 ...
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
getSupportedVersions()
Get supported versions.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.
getTypes($a_entity, $a_version)
Get field types for entity.