19 declare(strict_types=1);
31 public function init(): void
34 $this->content_style_domain = $DIC
46 $writer->setForumId((
int) $a_id);
48 $writer->setFileTargetDirectories(
49 $this->exp->getExportDirInContainer(),
53 $xml .= $writer->getXML();
63 if (
'frm' === $a_entity) {
65 'component' =>
'components/ILIAS/ILIASObject',
71 "component" =>
"components/ILIAS/News",
72 "entity" =>
"news_settings",
80 foreach ($a_ids as $frmObjId) {
86 $frmPageObjIds = $frm->getPageObjIds();
87 foreach ($frmPageObjIds as $frmPageObjId) {
88 $pageObjectIds[] = self::OBJ_TYPE .
':' . $frmPageObjId;
91 $style_id = $this->content_style_domain->styleForObjId((
int) $frmObjId)->getStyleId();
93 $styleIds[$style_id] = $style_id;
97 if ($pageObjectIds !== []) {
99 'component' =>
'components/ILIAS/COPage',
101 'ids' => $pageObjectIds,
105 if ($styleIds !== []) {
107 'component' =>
'components/ILIAS/Style',
109 'ids' => array_values($styleIds),
125 "namespace" =>
"http://www.ilias.de/Modules/Forum/frm/5_1",
126 "xsd_file" =>
"ilias_frm_5_1.xsd",
127 "uses_dataset" =>
false,
132 "namespace" =>
"http://www.ilias.de/Modules/Forum/frm/8",
133 "xsd_file" =>
"ilias_frm_8.xsd",
134 "uses_dataset" =>
false,
139 "namespace" =>
"http://www.ilias.de/Modules/Forum/frm/9",
140 "xsd_file" =>
"ilias_frm_9.xsd",
141 "uses_dataset" =>
false,
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
XML writer class Class to simplify manual writing of xml documents.
Exporter class for sessions.
getAbsoluteExportDirectory()
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
ILIAS Style Content DomainService $content_style_domain
static _lookupType(int $id, bool $reference=false)