19 declare(strict_types=1);
37 private readonly CorePropertiesRepository $core_properties_repository,
38 private readonly AdditionalPropertiesRepository $additional_properties_repository,
39 private readonly TranslationsRepository $translations_repository,
40 private readonly ObjectTypeSpecificPropertiesFactory $object_type_specific_properties_factory,
47 $core_properties = $this->core_properties_repository->getFor($object_id, $type);
51 $this->core_properties_repository,
52 $this->additional_properties_repository->getFor($object_id),
53 $this->additional_properties_repository,
54 $this->translations_repository->getFor($object_id),
55 $this->translations_repository,
60 public function preload(array $object_ids): void
62 $this->core_properties_repository->preload($object_ids);
63 $objects_by_type = [];
64 foreach ($object_ids as $obj_id) {
67 if (!array_key_exists($type, $objects_by_type)) {
68 $objects_by_type[$type] = [];
70 $objects_by_type[$type][] = $obj_id;
73 foreach ($objects_by_type as $type => $obj_ids) {
74 $this->object_type_specific_properties_factory->getForObjectTypeString($type)?->preload($obj_ids);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getFor(int $object_id, ?string $type=null)
static _lookupType(int $id, bool $reference=false)
preload(array $object_ids)
__construct(private readonly CorePropertiesRepository $core_properties_repository, private readonly AdditionalPropertiesRepository $additional_properties_repository, private readonly TranslationsRepository $translations_repository, private readonly ObjectTypeSpecificPropertiesFactory $object_type_specific_properties_factory, private readonly LOMServices $lom_services)