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") {
57 "Description" =>
"text",
59 "LangDefault" =>
"integer");
62 if ($a_entity ==
"transl") {
69 "MasterLang" =>
"text");
72 if ($a_entity ==
"service_settings") {
90 public function readData($a_entity, $a_version, $a_ids, $a_field =
"")
94 if (!is_array($a_ids)) {
95 $a_ids =
array($a_ids);
98 if ($a_entity ==
"transl_entry") {
104 " lang_code, lang_default" .
105 " FROM object_translation" .
106 " WHERE " .
$ilDB->in(
"obj_id", $a_ids,
false,
"integer"));
111 if ($a_entity ==
"transl") {
112 switch ($a_version) {
117 " FROM obj_content_master_lng" .
118 " WHERE " .
$ilDB->in(
"obj_id", $a_ids,
false,
"integer"));
123 if ($a_entity ==
"service_settings") {
124 switch ($a_version) {
127 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
128 include_once(
"./Services/Container/classes/class.ilContainer.php");
131 foreach ($a_ids as
$id) {
142 if ($a_version ==
"5.2.0") {
145 foreach ($settings as
$s) {
169 "transl_entry" =>
array(
"ids" => $a_rec[
"ObjId"])
183 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version)
187 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_rec[
'ObjId']);
189 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj', $a_rec[
'ObjId']);
192 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
194 $transl->addLanguage($a_rec[
"LangCode"], $a_rec[
"Title"], $a_rec[
"Description"], $a_rec[
"LangDefault"],
true);
200 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_rec[
'ObjId']);
202 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj', $a_rec[
'ObjId']);
205 include_once(
"./Services/Object/classes/class.ilObjectTranslation.php");
207 $transl->setMasterLanguage($a_rec[
"MasterLang"]);
212 case "service_settings":
213 include_once(
"./Services/Object/classes/class.ilObjectServiceSettingsGUI.php");
214 include_once(
"./Services/Container/classes/class.ilContainer.php");
227 $new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_rec[
'ObjId']);
229 $new_id = $a_mapping->getMapping(
'Services/Object',
'objs', $a_rec[
'ObjId']);
232 $new_id = $a_mapping->getMapping(
'Services/Object',
'obj', $a_rec[
'ObjId']);
235 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 ...
if(!array_key_exists('StateId', $_REQUEST)) $id
Create styles array
The data for the language used.
const AUTO_RATING_NEW_OBJECTS
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.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
readData($a_entity, $a_version, $a_ids, $a_field="")
Read data.