4 include_once(
"./Services/Object/classes/class.ilObjectListGUI.php");
55 $this->obj_definition = $DIC[
"objDefinition"];
56 $this->tree = $DIC->repositoryTree();
57 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
58 $this->
user = $DIC->user();
59 $this->rbacsystem = $DIC->rbac()->system();
60 $this->context = $a_context;
64 public function addItem($a_obj_id, $a_type, $a_ref_id = null)
66 $this->obj_ids[] = $a_obj_id;
67 $this->obj_ids_by_type[$a_type][] = $a_obj_id;
68 $this->types[] = $a_type;
71 $this->ref_ids[] = $a_ref_id;
72 $this->ref_ids_by_type[$a_type][] = $a_ref_id;
84 if (!$this->obj_ids) {
88 $this->obj_ids = array_unique($this->obj_ids);
89 $this->types = array_unique($this->types);
91 $this->ref_ids = array_unique($this->ref_ids);
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]);
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]);
108 $this->obj_ids_by_type[$type]
112 $class = $objDefinition->getClassName($type);
113 $location = $objDefinition->getLocation($type);
115 $full_class =
"ilObj" . $class .
"Access";
116 include_once(
$location .
"/class." . $full_class .
".php");
117 if (class_exists($full_class)) {
119 array($full_class,
"_preloadData"),
120 $this->obj_ids_by_type[$type],
121 $this->ref_ids_by_type[$type]
127 if ($this->ref_ids) {
128 $tree->preloadDeleted($this->ref_ids);
129 $tree->preloadDepthParent($this->ref_ids);
130 $ilObjDataCache->preloadReferenceCache($this->ref_ids,
false);
138 include_once(
"./Services/Object/classes/class.ilObjectActivation.php");
142 include_once(
"./Services/Object/classes/class.ilObjectListGUI.php");
146 include_once(
"./Services/Rating/classes/class.ilRating.php");
147 include_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
150 include_once(
"./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php");
157 include_once(
"./Services/Tracking/classes/class.ilLPStatus.php");
static preloadListGUIData($a_obj_ids)
static preloadByObjIds(array $a_obj_ids)
Preload list gui data.
Manages favourites, currently the interface for other components, needs discussion.
static preloadCommonProperties($a_obj_ids, $a_context)
Preload common properties.
Preloader for object list GUIs.
const CONTEXT_PERSONAL_DESKTOP
addItem($a_obj_id, $a_type, $a_ref_id=null)
static preloadData(array $a_ref_ids)
Preload data to internal cache.
static preloadPersistedConditionsForTargetRecords($a_type, $a_obj_ids)
Preload conditions for target records.
static preloadListGUIData(array $a_obj_ids)
Preload rating data for list guis.