diff --git a/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectProperties.php b/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectProperties.php new file mode 100644 index 000000000000..23ebdbfae541 --- /dev/null +++ b/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectProperties.php @@ -0,0 +1,45 @@ +providers === null) { + $this->providers = new CategoryReferenceObjectPropertiesProviders(); + } + return $this->providers; + } + + public function preload(array $object_ids): void + { + return; + } +} diff --git a/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectPropertiesProviders.php b/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectPropertiesProviders.php new file mode 100644 index 000000000000..9085b5be575b --- /dev/null +++ b/components/ILIAS/CategoryReference/ObjectProperties/CategoryReferenceObjectPropertiesProviders.php @@ -0,0 +1,59 @@ +getObjectProperties()->getPropertyIcon()->getCustomIcon(); + if ($custom_icon?->exists()) { + return $icon_factory->custom( + $custom_icon->getFullPath(), + '' + ); + } + + return null; + } +} diff --git a/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectProperties.php b/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectProperties.php new file mode 100644 index 000000000000..af778ea32c29 --- /dev/null +++ b/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectProperties.php @@ -0,0 +1,45 @@ +providers === null) { + $this->providers = new CourseReferenceObjectPropertiesProviders(); + } + return $this->providers; + } + + public function preload(array $object_ids): void + { + return; + } +} diff --git a/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectPropertiesProviders.php b/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectPropertiesProviders.php new file mode 100644 index 000000000000..d62775c69b76 --- /dev/null +++ b/components/ILIAS/CourseReference/ObjectProperties/CourseReferenceObjectPropertiesProviders.php @@ -0,0 +1,59 @@ +getObjectProperties()->getPropertyIcon()->getCustomIcon(); + if ($custom_icon?->exists()) { + return $icon_factory->custom( + $custom_icon->getFullPath(), + '' + ); + } + + return null; + } +} diff --git a/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectProperties.php b/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectProperties.php new file mode 100644 index 000000000000..5a09cf45814c --- /dev/null +++ b/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectProperties.php @@ -0,0 +1,45 @@ +providers === null) { + $this->providers = new GroupReferenceObjectPropertiesProviders(); + } + return $this->providers; + } + + public function preload(array $object_ids): void + { + return; + } +} diff --git a/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectPropertiesProviders.php b/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectPropertiesProviders.php new file mode 100644 index 000000000000..95bfec6796fd --- /dev/null +++ b/components/ILIAS/GroupReference/ObjectProperties/GroupReferenceObjectPropertiesProviders.php @@ -0,0 +1,59 @@ +getObjectProperties()->getPropertyIcon()->getCustomIcon(); + if ($custom_icon?->exists()) { + return $icon_factory->custom( + $custom_icon->getFullPath(), + '' + ); + } + + return null; + } +}