Exporter class for sessions.
More...
|
| init () |
| Initialisation. More...
|
|
| getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids) |
| Get tail dependencies. More...
|
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
| Get xml representation. More...
|
|
| getValidSchemaVersions ($a_entity) |
| Returns schema versions that the component can export to. More...
|
|
| __construct () |
| Constructor. More...
|
|
| setExport (ilExport $a_exp) |
| Set export object. More...
|
|
| getExport () |
| Get export. More...
|
|
| getXmlRepresentation ($a_entity, $a_schema_version, $a_id) |
| Get xml representation. More...
|
|
| init () |
|
| setExportDirectories ($a_dir_relative, $a_dir_absolute) |
| Export directories. More...
|
|
| getRelativeExportDirectory () |
| Get relative export directory. More...
|
|
| getAbsoluteExportDirectory () |
| Get absolute export directory. More...
|
|
| getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids) |
| Get head dependencies. More...
|
|
| getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids) |
| Get tail dependencies. More...
|
|
| getValidSchemaVersions ($a_entity) |
| Returns schema versions that the component can export to. More...
|
|
| determineSchemaVersion ($a_entity, $a_target_release) |
| Determine schema version. More...
|
|
Exporter class for sessions.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- Id
Definition at line 13 of file class.ilSessionExporter.php.
◆ getActiveAdvMDRecords()
ilSessionExporter::getActiveAdvMDRecords |
( |
|
$a_id | ) |
|
|
protected |
get activated adv md records
- Parameters
-
- Returns
- type
Definition at line 83 of file class.ilSessionExporter.php.
References ilAdvancedMDRecord\_getActivatedRecordsByObjectType().
Referenced by getXmlExportTailDependencies().
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();
static _getActivatedRecordsByObjectType($a_obj_type, $a_sub_type="", $a_only_optional=false)
Get activated records by object type.
◆ getValidSchemaVersions()
ilSessionExporter::getValidSchemaVersions |
( |
|
$a_entity | ) |
|
Returns schema versions that the component can export to.
ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top.
- Returns
Definition at line 126 of file class.ilSessionExporter.php.
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,
◆ getXmlExportTailDependencies()
ilSessionExporter::getXmlExportTailDependencies |
( |
|
$a_entity, |
|
|
|
$a_target_release, |
|
|
|
$a_ids |
|
) |
| |
Get tail dependencies.
- Parameters
-
type | $a_entity | |
type | $a_target_release | |
type | $a_ids | |
- Returns
- string
Definition at line 35 of file class.ilSessionExporter.php.
References $id, and getActiveAdvMDRecords().
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",
if(!array_key_exists('StateId', $_REQUEST)) $id
getActiveAdvMDRecords($a_id)
get activated adv md records
◆ getXmlRepresentation()
ilSessionExporter::getXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_schema_version, |
|
|
|
$a_id |
|
) |
| |
Get xml representation.
- Parameters
-
string | entity |
string | schema version |
string | id |
- Returns
- string xml string
Definition at line 114 of file class.ilSessionExporter.php.
116 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
◆ init()
ilSessionExporter::init |
( |
| ) |
|
Initialisation.
Definition at line 20 of file class.ilSessionExporter.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");
◆ $ds
The documentation for this class was generated from the following file: