41 global $objDefinition, $tree, $ilObjDataCache,
$ilUser, $rbacsystem;
48 $this->obj_ids = array_unique($this->obj_ids);
49 $this->types = array_unique($this->types);
52 $this->ref_ids = array_unique($this->ref_ids);
56 include_once(
"./Services/AccessControl/classes/class.ilConditionHandler.php");
57 foreach ($this->types as $type)
59 $this->obj_ids_by_type[$type] = array_unique($this->obj_ids_by_type[$type]);
61 if(is_array($this->ref_ids_by_type[$type]))
63 $this->ref_ids_by_type[$type] = array_unique($this->ref_ids_by_type[$type]);
71 $this->obj_ids_by_type[$type]);
74 $class = $objDefinition->getClassName($type);
75 $location = $objDefinition->getLocation($type);
78 $full_class =
"ilObj".$class.
"Access";
79 include_once(
$location.
"/class.".$full_class.
".php");
80 if(class_exists($full_class))
82 call_user_func(
array($full_class,
"_preloadData"),
83 $this->obj_ids_by_type[$type], $this->ref_ids_by_type[$type]);
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());
95 if($ilUser->getId != ANONYMOUS_USER_ID &&
101 include_once(
"./Services/Object/classes/class.ilObjectActivation.php");
105 include_once(
"./Services/Object/classes/class.ilObjectListGUI.php");
110 include_once(
"./Services/Rating/classes/class.ilRating.php");
111 include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
114 include_once(
"./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php");
122 include_once(
"./Services/Tracking/classes/class.ilLPStatus.php");
static preloadIsDesktopItem($a_usr_id, $a_item_ids)
Preload desktop item information.
static preloadListGUIData($a_obj_ids)
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
static preloadCommonProperties($a_obj_ids, $a_context)
Preload common properties.
static preloadConditionsForTargetRecords($a_type, $a_obj_ids)
Preload conditions for target records.
const CONTEXT_PERSONAL_DESKTOP
static preloadData(array $a_ref_ids)
Preload data to internal cache.
Create styles array
The data for the language used.
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.