70 if (!$this->obj_ids) {
74 $this->obj_ids = array_unique($this->obj_ids);
75 $this->types = array_unique($this->types);
77 $this->ref_ids = array_unique($this->ref_ids);
81 foreach ($this->types as $type) {
82 $this->obj_ids_by_type[$type] = array_unique($this->obj_ids_by_type[$type]);
84 if (isset($this->ref_ids_by_type[$type])) {
85 $this->ref_ids_by_type[$type] = array_unique($this->ref_ids_by_type[$type]);
93 $this->obj_ids_by_type[$type]
97 $class = $this->obj_definition->getClassName($type);
98 $location = $this->obj_definition->getLocation($type);
100 $full_class =
"ilObj" . $class .
"Access";
101 if (class_exists($full_class)) {
103 [$full_class,
"_preloadData"],
104 $this->obj_ids_by_type[$type] ?? [],
105 $this->ref_ids_by_type[$type] ?? []
111 if ($this->ref_ids) {
112 $this->tree->preloadDeleted($this->ref_ids);
113 $this->tree->preloadDepthParent($this->ref_ids);
114 $this->obj_data_cache->preloadReferenceCache($this->ref_ids,
false);
115 $this->rbacsystem->preloadRbacPaCache($this->ref_ids, $this->
user->getId());
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
static preloadListGUIData(array $a_obj_ids)
static preloadCommonProperties(array $obj_ids, int $context)
const CONTEXT_PERSONAL_DESKTOP
static preloadData(array $ref_ids)
Preload data to internal cache.
static preloadPersistedConditionsForTargetRecords(string $a_type, array $a_obj_ids)
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.