19 declare(strict_types=1);
76 $general->getSubElement(
'description'),
94 $life_cycle = $structure->
getRoot()->getSubElement(
'lifeCycle');
103 $meta = $structure->
getRoot()->getSubElement(
'metaMetadata');
107 $meta->getSubElement(
'metadataSchema'),
112 $meta->getSubElement(
'language'),
138 $this->
tag($requirement =
$technical->getSubElement(
'requirement'))
139 ->withCreatedWith($or = $requirement->getSubElement(
'orComposite'))
140 ->withPreview($or->getSubElement(
'name')->getSubElement(
'value'))
146 ->withPreview($or->getSubElement(
'name')->getSubElement(
'value'))
147 ->withRepresentation($or->getSubElement(
'type')->getSubElement(
'value'))
148 ->withLastInTree(
true)
169 ->withPreview(
$educational->getSubElement(
'typicalLearningTime')->getSubElement(
'duration'))
170 ->withRepresentation(
$educational->getSubElement(
'interactivityType')->getSubElement(
'value'))
171 ->withIsCollected(
true)
217 ->withLastInTree(
true)
222 $this->
tag($cost =
$rights->getSubElement(
'cost'))
223 ->withPreview($cost->getSubElement(
'value'))
228 $this->
tag($cor =
$rights->getSubElement(
'copyrightAndOtherRestrictions'))
229 ->withPreview($cor->getSubElement(
'value'))
234 $this->
tag($description =
$rights->getSubElement(
'description'))
235 ->withPreview($description->getSubElement(
'string'))
247 ->withPreview(
$relation->getSubElement(
'resource')->getSubElement(
'identifier')->getSubElement(
'entry'))
248 ->withCreatedWith($kind =
$relation->getSubElement(
'kind'))
249 ->withRepresentation($kind->getSubElement(
'value'))
250 ->withIsCollected(
true)
256 $this->
tag($resource =
$relation->getSubElement(
'resource'))
257 ->withCreatedWith($identifier = $resource->getSubElement(
'identifier'))
258 ->withPreview($identifier->getSubElement(
'entry'))
264 $resource->getSubElement(
'description'),
275 ->withPreview(
$annotation->getSubElement(
'description')->getSubElement(
'string'))
276 ->withRepresentation(
$annotation->getSubElement(
'entity'))
277 ->withIsCollected(
true)
278 ->withLastInTree(
true)
284 ->withPreview($entity)
285 ->withImportantLabel(
true)
291 ->withPreview($date->getSubElement(
'dateTime'))
296 $this->
tag($description =
$annotation->getSubElement(
'description'))
297 ->withPreview($description->getSubElement(
'string'))
306 $class = $structure->
getRoot()->getSubElement(
'classification');
307 $taxon_path = $class->getSubElement(
'taxonPath');
308 $taxon = $taxon_path->getSubElement(
'taxon');
309 $taxon_entry_string = $taxon->getSubElement(
'entry')->getSubElement(
'string');
312 ->withPreview($taxon_entry_string)
313 ->withCreatedWith($purpose = $class->getSubElement(
'purpose'))
314 ->withRepresentation($purpose->getSubElement(
'value'))
315 ->withIsCollected(
true)
321 $this->
tag($taxon_path)
322 ->withPreview($taxon_entry_string)
323 ->withCreatedWith($source = $taxon_path->getSubElement(
'source'))
324 ->withRepresentation($source->getSubElement(
'string'))
337 $class->getSubElement(
'keyword'),
359 ->withImportantLabel(
true)
370 ->withPreview($contribute->getSubElement(
'entity'))
371 ->withCreatedWith($role = $contribute->getSubElement(
'role'))
372 ->withRepresentation($role->getSubElement(
'value'))
378 $contribute->getSubElement(
'entity'),
383 $contribute->getSubElement(
'date'),
391 bool $is_collected =
false 402 bool $is_collected =
false 414 bool $important_label
418 ->withPreview($element)
419 ->withIsCollected($is_collected)
420 ->withLastInTree(
true)
421 ->withImportantLabel($important_label)
430 string ...$steps_to_preview
433 foreach ($steps_to_preview as $step) {
438 ->withPreview($preview)
439 ->withLastInTree(
true)
440 ->withIsCollected($is_collected)
448 return $this->tag_factory->forElement($element);
__construct(Container $dic, ilPlugin $plugin)