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
93 $this->obj_ids_by_type[
$type]
94 );
95 }
96
97 $class = $this->obj_definition->getClassName(
$type);
100 $full_class = "ilObj" . $class . "Access";
101 if (is_file(
$location .
"/class." . $full_class .
".php")) {
102 include_once(
$location .
"/class." . $full_class .
".php");
103 }
104 if (class_exists($full_class)) {
105 call_user_func(
106 array($full_class, "_preloadData"),
107 $this->obj_ids_by_type[
$type] ?? [],
108 $this->ref_ids_by_type[
$type] ?? []
109 );
110 }
111 }
112 }
113
114 if ($this->ref_ids) {
115 $this->tree->preloadDeleted($this->ref_ids);
116 $this->tree->preloadDepthParent($this->ref_ids);
117 $this->obj_data_cache->preloadReferenceCache($this->ref_ids, false);
118 $this->rbacsystem->preloadRbacPaCache($this->ref_ids, $this->
user->getId());
119
122 $this->fav_manager->loadData($this->
user->getId(), $this->ref_ids);
123 }
124
126 }
127
129
132
134 }
135
140 }
141 }
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.