19 declare(strict_types=1);
28 public function init(): void
33 $this->ds->setDSPrefix(
'ds');
34 $this->content_style_domain = $DIC->contentStyle()
41 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
43 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id],
'',
true,
true);
50 'namespace' =>
'http://www.ilias.de/Modules/ContentPage/' . self::OBJ_TYPE .
'/5_4',
51 'xsd_file' =>
'ilias_' . self::OBJ_TYPE .
'_5_4.xsd',
52 'uses_dataset' =>
true,
64 foreach ($a_ids as $copaObjId) {
70 $copaPageObjIds = $copa->getPageObjIds();
71 foreach ($copaPageObjIds as $copaPageObjId) {
72 $pageObjectIds[] = self::OBJ_TYPE .
':' . $copaPageObjId;
75 $style_id = $this->content_style_domain
76 ->styleForObjId($copa->getId())
79 $styleIds[$style_id] = $style_id;
85 if (count($pageObjectIds) > 0) {
87 'component' =>
'Services/COPage',
89 'ids' => $pageObjectIds,
93 if (count($styleIds) > 0) {
95 'component' =>
'Services/Style',
97 'ids' => array_values($styleIds),
101 if (self::OBJ_TYPE === $a_entity) {
103 'component' =>
'Services/Object',
104 'entity' =>
'common',
DomainService $content_style_domain
Facade for consumer domain interface.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
getAbsoluteExportDirectory()
getValidSchemaVersions(string $a_entity)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
Class ilContentPageDataSet.