3 declare(strict_types=1);
47 $this->obj_definition = $DIC[
"objDefinition"];
48 $this->tree = $DIC->repositoryTree();
49 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
50 $this->
user = $DIC->user();
51 $this->rbacsystem = $DIC->rbac()->system();
58 $this->obj_ids[] = $obj_id;
59 $this->obj_ids_by_type[
$type][] = $obj_id;
60 $this->types[] =
$type;
70 if (!$this->obj_ids) {
74 $this->obj_ids = array_unique($this->obj_ids);
75 $this->types = array_unique($this->types);
77 $this->ref_ids = array_unique($this->ref_ids);
81 foreach ($this->types as
$type) {
82 $this->obj_ids_by_type[
$type] = array_unique($this->obj_ids_by_type[$type]);
84 if (isset($this->ref_ids_by_type[$type])) {
85 $this->ref_ids_by_type[
$type] = array_unique($this->ref_ids_by_type[$type]);
93 $this->obj_ids_by_type[$type]
97 $class = $this->obj_definition->getClassName($type);
98 $location = $this->obj_definition->getLocation($type);
100 $full_class =
"ilObj" . $class .
"Access";
101 if (is_file(
$location .
"/class." . $full_class .
".php")) {
102 include_once(
$location .
"/class." . $full_class .
".php");
104 if (class_exists($full_class)) {
106 array($full_class,
"_preloadData"),
107 $this->obj_ids_by_type[$type] ?? [],
108 $this->ref_ids_by_type[$type] ?? []
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());
ilFavouritesManager $fav_manager
$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 preloadListGUIData(array $a_obj_ids)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilObjectDefinition $obj_definition
parses the objects.xml it handles the xml-description of all ilias objects
static preloadCommonProperties(array $obj_ids, int $context)
__construct(int $context)
const CONTEXT_PERSONAL_DESKTOP
static preloadData(array $ref_ids)
Preload data to internal cache.
static preloadPersistedConditionsForTargetRecords(string $a_type, array $a_obj_ids)
ilObjectDataCache $obj_data_cache
addItem(int $obj_id, string $type, ?int $ref_id=null)
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.