4 include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
22 include_once(
"./Modules/Session/classes/class.ilSessionDataSet.php");
24 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25 $this->ds->setDSPrefix(
"ds");
40 foreach ($a_ids as
$id) {
42 if (
sizeof($rec_ids)) {
43 foreach ($rec_ids as $rec_id) {
44 $advmd_ids[] = $id .
":" . $rec_id;
48 if (
sizeof($advmd_ids)) {
50 "component" =>
"Services/AdvancedMetaData",
57 foreach ($a_ids as $sess_id) {
58 $md_ids[] = $sess_id .
":0:sess";
63 "component" =>
"Services/MetaData",
71 "component" =>
"Services/Object",
72 "entity" =>
"service_settings",
88 foreach ($record_obj->getAssignedObjectTypes() as $obj_info) {
89 if ($obj_info[
'obj_type'] ==
'sess' && $obj_info[
'optional'] == 0) {
90 $active[] = $record_obj->getRecordId();
94 $obj_info[
'obj_type'] ==
'sess' &&
95 $obj_info[
'optional'] == 1 &&
96 $a_id == $record_obj->getParentObject()
98 $active[] = $record_obj->getRecordId();
116 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
130 "namespace" =>
"http://www.ilias.de/Modules/Session/sess/4_1",
131 "xsd_file" =>
"ilias_sess_4_1.xsd",
132 "uses_dataset" =>
true,
136 "namespace" =>
"http://www.ilias.de/Modules/Session/sess/5_0",
137 "xsd_file" =>
"ilias_sess_5_0.xsd",
138 "uses_dataset" =>
true,
142 "namespace" =>
"http://www.ilias.de/Modules/Session/sess/5_1",
143 "xsd_file" =>
"ilias_sess_5_1.xsd",
144 "uses_dataset" =>
true,
148 "namespace" =>
"http://www.ilias.de/Modules/Session/sess/5_1",
149 "xsd_file" =>
"ilias_sess_5_1.xsd",
150 "uses_dataset" =>
true,
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
if(!array_key_exists('StateId', $_REQUEST)) $id
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="", $a_only_optional=false)
Get activated records by object type.
Exporter class for sessions.
getActiveAdvMDRecords($a_id)
get activated adv md records