19 declare(strict_types=1);
57 $this->querier->deleteAll($ressource_id);
63 foreach ($set->
getRoot()->getSubElements() as $sub) {
76 foreach ($rows as $row) {
77 $this->querier->manipulate(
92 bool $delete_all =
false 95 throw new \ilMDStructureException(
'LOM Structure is nested to deep.');
97 $marker = $this->
marker($element);
98 if (!isset($marker) && !$delete_all) {
102 $tag = $this->
tag($element);
103 $table = $tag?->table() ??
'';
104 if ($table && $current_row?->table() !== $table) {
105 yield $current_row = $this->assignment_factory->row(
108 $current_row?->
id() ?? 0
112 $action = $marker?->action();
117 case MarkerAction::NEUTRAL:
123 case MarkerAction::CREATE_OR_UPDATE:
124 if (!is_null($tag)) {
128 $marker->dataValue(),
135 if (!is_null($tag)) {
136 $current_row->addAction($this->assignment_factory->action(
161 $row->
addAction($this->assignment_factory->action(
167 $row->
addAction($this->assignment_factory->action(
173 $row->
setId($this->querier->nextID($row->
table()));
181 return $this->dictionary->tagForElement($element);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins