40 {
41 global $objDefinition, $tree, $ilObjDataCache,
$ilUser, $rbacsystem;
42
43 if(!$this->obj_ids)
44 {
45 return;
46 }
47
48 $this->obj_ids = array_unique($this->obj_ids);
49 $this->types = array_unique($this->types);
50 if($this->ref_ids)
51 {
52 $this->ref_ids = array_unique($this->ref_ids);
53 }
54
55
56 include_once("./Services/AccessControl/classes/class.ilConditionHandler.php");
57 foreach ($this->types as $type)
58 {
59 $this->obj_ids_by_type[$type] = array_unique($this->obj_ids_by_type[$type]);
60
61 if(is_array($this->ref_ids_by_type[$type]))
62 {
63 $this->ref_ids_by_type[$type] = array_unique($this->ref_ids_by_type[$type]);
64 }
65
69 {
71 $this->obj_ids_by_type[$type]);
72 }
73
74 $class = $objDefinition->getClassName($type);
75 $location = $objDefinition->getLocation($type);
77 {
78 $full_class = "ilObj".$class."Access";
79 include_once(
$location.
"/class.".$full_class.
".php");
80 if(class_exists($full_class))
81 {
82 call_user_func(array($full_class, "_preloadData"),
83 $this->obj_ids_by_type[$type], $this->ref_ids_by_type[$type]);
84 }
85 }
86 }
87
88 if($this->ref_ids)
89 {
90 $tree->preloadDeleted($this->ref_ids);
91 $tree->preloadDepthParent($this->ref_ids);
92 $ilObjDataCache->preloadReferenceCache($this->ref_ids, false);
93 $rbacsystem->preloadRbacPaCache($this->ref_ids,
$ilUser->getId());
94
95 if(
$ilUser->getId != ANONYMOUS_USER_ID &&
97 {
99 }
100
101 include_once("./Services/Object/classes/class.ilObjectActivation.php");
103 }
104
105 include_once("./Services/Object/classes/class.ilObjectListGUI.php");
107
109 {
110 include_once("./Services/Rating/classes/class.ilRating.php");
111 include_once("./Services/Rating/classes/class.ilRatingGUI.php");
113
114 include_once("./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php");
116 }
117
121 {
122 include_once("./Services/Tracking/classes/class.ilLPStatus.php");
124 }
125 }
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
preloadConditionsForTargetRecords($a_type, $a_obj_ids)
Preload conditions for target records.
static preloadListGUIData($a_obj_ids)
static preloadIsDesktopItem($a_usr_id, $a_item_ids)
Preload desktop item information.
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.