19 declare(strict_types=1);
60 foreach ($this->content_assembler->get($set, $request) as $type => $entity) {
61 if ($type === ContentType::FORM) {
67 if (!$form?->getData()) {
70 $data = $form->getData();
75 $this->copyright_handler->isCPSelectionActive() &&
82 $this->manipulator->execute($set);
90 foreach ($data as $post_key => $value) {
95 $path = $this->path_factory->fromString($post_key);
96 if ($value === null || $value ===
'') {
97 $set = $this->manipulator->prepareDelete($set,
$path);
100 $set = $this->manipulator->prepareCreateOrUpdate($set,
$path, $value);
112 $keyword_els = $this->navigator_factory->navigator(
113 $path = $this->path_collection->keywords(),
115 )->elementsAtFinalStep();
116 $number_of_keywords = count(iterator_to_array($keyword_els));
118 if (!empty($values)) {
119 $set = $this->manipulator->prepareCreateOrUpdate($set,
$path, ...$values);
121 if (count($values) < $number_of_keywords) {
122 $delete_path = $this->path_collection->keywordsBetweenIndices(
124 $number_of_keywords - 1
126 $set = $this->manipulator->prepareDelete($set, $delete_path);
135 foreach ($data as $post_key => $value) {
136 $path = $this->path_factory->fromString($post_key);
137 if ($value === null || $value ===
'') {
138 $set = $this->manipulator->prepareDelete($set,
$path);
141 $set = $this->manipulator->prepareCreateOrUpdate($set,
$path, $value);
155 foreach ($data as $post_key => $value) {
156 $path = $paths[$post_key];
157 if ($value === null || $value ===
'') {
158 $set = $this->manipulator->prepareDelete($set,
$path);
161 $set = $this->manipulator->prepareCreateOrUpdate($set,
$path, $value);
170 $description = $data[0];
175 if ($description ===
'' || $description === null) {
176 $set = $this->manipulator->prepareCreateOrUpdate(
178 $this->path_collection->hasCopyright(),
181 $set = $this->manipulator->prepareCreateOrUpdate(
183 $this->path_collection->sourceForHasCopyright(),
186 return $this->manipulator->prepareDelete($set, $this->path_collection->copyright());
189 $set = $this->manipulator->prepareCreateOrUpdate(
191 $this->path_collection->hasCopyright(),
194 $set = $this->manipulator->prepareCreateOrUpdate(
196 $this->path_collection->sourceForHasCopyright(),
199 $set = $this->manipulator->prepareCreateOrUpdate(
201 $this->path_collection->copyright(),
206 $this->copyright_handler->doesObjectTypeSupportHarvesting($set->
getRessourceID()->type()) &&
209 $this->copyright_handler->setOerHarvesterBlocked(
211 (bool) $data[1][ContentAssembler::OER_BLOCKED]
const TYPICAL_LEARNING_TIME
const CUSTOM_CP_DESCRIPTION