77 {
83
84 if (!$this->obj_ids) {
85 return;
86 }
87
88 $this->obj_ids = array_unique($this->obj_ids);
89 $this->types = array_unique($this->types);
90 if ($this->ref_ids) {
91 $this->ref_ids = array_unique($this->ref_ids);
92 }
93
94
95 include_once("./Services/Conditions/classes/class.ilConditionHandler.php");
96 foreach ($this->types as
$type) {
97 $this->obj_ids_by_type[
$type] = array_unique($this->obj_ids_by_type[
$type]);
98
99 if (is_array($this->ref_ids_by_type[
$type])) {
100 $this->ref_ids_by_type[
$type] = array_unique($this->ref_ids_by_type[
$type]);
101 }
102
108 $this->obj_ids_by_type[
$type]
109 );
110 }
111
112 $class = $objDefinition->getClassName(
$type);
115 $full_class = "ilObj" . $class . "Access";
116 include_once(
$location .
"/class." . $full_class .
".php");
117 if (class_exists($full_class)) {
118 call_user_func(
119 array($full_class, "_preloadData"),
120 $this->obj_ids_by_type[
$type],
121 $this->ref_ids_by_type[
$type]
122 );
123 }
124 }
125 }
126
127 if ($this->ref_ids) {
128 $tree->preloadDeleted($this->ref_ids);
129 $tree->preloadDepthParent($this->ref_ids);
130 $ilObjDataCache->preloadReferenceCache($this->ref_ids, false);
132
133 if (
$ilUser->getId() != ANONYMOUS_USER_ID &&
135 $this->fav_manager->loadData(
$ilUser->getId(), $this->ref_ids);
136 }
137
138 include_once("./Services/Object/classes/class.ilObjectActivation.php");
140 }
141
142 include_once("./Services/Object/classes/class.ilObjectListGUI.php");
144
146 include_once("./Services/Rating/classes/class.ilRating.php");
147 include_once("./Services/Rating/classes/class.ilRatingGUI.php");
149
150 include_once("./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php");
152 }
153
157 include_once("./Services/Tracking/classes/class.ilLPStatus.php");
159 }
160 }
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
static preloadPersistedConditionsForTargetRecords($a_type, $a_obj_ids)
Preload conditions for target records.
static preloadListGUIData($a_obj_ids)
static preloadData(array $a_ref_ids)
Preload data to internal cache.
const CONTEXT_PERSONAL_DESKTOP
static preloadCommonProperties($a_obj_ids, $a_context)
Preload common properties.
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.