4 include_once(
"./Services/DataSet/classes/class.ilDataSet.php");
27 return array(
"4.4.0",
"5.1.0",
"5.2.0");
38 return "http://www.ilias.de/xml/Services/Object/".$a_entity;
47 protected function getTypes($a_entity, $a_version)
49 if ($a_entity ==
"transl_entry")
59 "Description" =>
"text",
61 "LangDefault" =>
"integer");
64 if ($a_entity ==
"transl")
73 "MasterLang" =>
"text");
76 if ($a_entity ==
"service_settings")
96 function readData($a_entity, $a_version, $a_ids, $a_field =
"")
100 if (!is_array($a_ids))
102 $a_ids =
array($a_ids);
105 if ($a_entity ==
"transl_entry")
113 " lang_code, lang_default".
114 " FROM object_translation".
115 " WHERE ".$ilDB->in(
"obj_id", $a_ids,
false,
"integer"));
120 if ($a_entity ==
"transl")
128 " FROM obj_content_master_lng".
129 " WHERE ".$ilDB->in(
"obj_id", $a_ids,
false,
"integer"));
134 if ($a_entity ==
"service_settings")
140 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
141 include_once(
"./Services/Container/classes/class.ilContainer.php");
144 foreach ($a_ids as $id)
156 if ($a_version ==
"5.2.0")
160 foreach ($settings as $s)
188 "transl_entry" =>
array(
"ids" => $a_rec[
"ObjId"])
202 function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
207 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'ObjId']);
210 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj',$a_rec[
'ObjId']);
214 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
216 $transl->addLanguage($a_rec[
"LangCode"], $a_rec[
"Title"], $a_rec[
"Description"], $a_rec[
"LangDefault"],
true);
222 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'ObjId']);
225 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj',$a_rec[
'ObjId']);
229 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
231 $transl->setMasterLanguage($a_rec[
"MasterLang"]);
236 case "service_settings":
237 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
238 include_once(
"./Services/Container/classes/class.ilContainer.php");
252 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_rec[
'ObjId']);
255 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj',$a_rec[
'ObjId']);
259 if (in_array($a_rec[
"Setting"], $settings))
const CALENDAR_VISIBILITY
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 ...
Create styles array
The data for the language used.
const AUTO_RATING_NEW_OBJECTS
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=NULL)
Lookup a container setting.
getDependencies($a_entity, $a_version, $a_rec, $a_ids)
Determine the dependent sets of data.
importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
Import record.
getSupportedVersions()
Get supported versions.
static getInstance($a_obj_id)
Get instance.
const INFO_TAB_VISIBILITY
static _writeContainerSetting($a_id, $a_keyword, $a_value)
getXmlNamespace($a_entity, $a_schema_version)
Get xml namespace.
A dataset contains in data in a common structure that can be shared and transformed for different pur...
getTypes($a_entity, $a_version)
Get field types for entity.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.