19 declare(strict_types=1);
34 private ObjectTypeSpecificPropertiesFactory $object_type_specific_properties_factory,
41 $core_properties = $this->core_properties_repository->getFor($object_id, $type);
45 $this->core_properties_repository,
46 $this->additional_properties_repository->getFor($object_id),
47 $this->additional_properties_repository,
52 public function preload(array $object_ids): void
54 $this->core_properties_repository->preload($object_ids);
55 $objects_by_type = [];
56 foreach ($object_ids as $obj_id) {
59 if (!array_key_exists($type, $objects_by_type)) {
60 $objects_by_type[$type] = [];
62 $objects_by_type[$type][] = $obj_id;
65 foreach ($objects_by_type as $type => $obj_ids) {
66 $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)
preload(array $object_ids)
__construct(private ilObjectCorePropertiesRepository $core_properties_repository, private ilObjectAdditionalPropertiesRepository $additional_properties_repository, private ObjectTypeSpecificPropertiesFactory $object_type_specific_properties_factory, private LOMServices $lom_services)
static _lookupType(int $id, bool $reference=false)