68 : void
69 {
70 if (!$this->obj_ids) {
71 return;
72 }
73
74 $this->obj_ids = array_unique($this->obj_ids);
75 $this->types = array_unique($this->types);
76 if ($this->ref_ids) {
77 $this->ref_ids = array_unique($this->ref_ids);
78 }
79
80
81 foreach ($this->types as $type) {
82 $this->obj_ids_by_type[$type] = array_unique($this->obj_ids_by_type[$type]);
83
84 if (isset($this->ref_ids_by_type[$type])) {
85 $this->ref_ids_by_type[$type] = array_unique($this->ref_ids_by_type[$type]);
86 }
87
92 $type,
93 $this->obj_ids_by_type[$type]
94 );
95 }
96
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)) {
102 call_user_func(
103 [$full_class, "_preloadData"],
104 $this->obj_ids_by_type[$type] ?? [],
105 $this->ref_ids_by_type[$type] ?? []
106 );
107 }
108 }
109 }
110
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());
116
119 $this->fav_manager->loadData($this->
user->getId(), $this->ref_ids);
120 }
121
123 }
124
126
129
131 }
132
137 }
138 }
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
static preloadPersistedConditionsForTargetRecords(string $a_type, array $a_obj_ids)
static preloadListGUIData(array $a_obj_ids)
static preloadData(array $ref_ids)
Preload data to internal cache.
const CONTEXT_PERSONAL_DESKTOP
static preloadCommonProperties(array $obj_ids, int $context)
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.