19 declare(strict_types=1);
    42         private bool $custom_icons_enabled,
    53         if ($this->object_type_specific_property_providers === null) {
    56         return $this->object_type_specific_property_providers->getObjectTypeSpecificIcon($object_id, $factory, $irss);
    61         return $this->custom_icons_enabled ? $this->
custom_icon : null;
    72         $clone->deleted_flag = 
true;
    84         $clone->temp_file_name = $name;
    93         if (!$this->custom_icons_enabled) {
    96         $trafo = $refinery->custom()->transformation(
    99                     $this->custom_icons_enabled,
   103                 if (count($v) > 0 && $v[0] !== 
'custom_icon') {
   104                     return $property_icon
   105                         ->withTempFileName($v[0]);
   108                 if (count($v) === 0 && $this->
custom_icon->exists()) {
   109                     return $property_icon
   113                 return $property_icon;
   116         $custom_icon = $field_factory
   118             ->withAcceptedMimeTypes(self::SUPPORTED_MIME_TYPES)
   125         return $custom_icon->withValue([
'custom_icon']);
   131         if (!$this->custom_icons_enabled) {
   136         $custom_icon_input->setUseCache(
false);
   138             $custom_icon_input->setImage($this->
custom_icon->getFullPath());
   140             $custom_icon_input->setImage(
'');
   143         return $custom_icon_input;
 
const SUPPORTED_MIME_TYPES
 
Class ilObjectCustomIconImpl TODO: Inject database persistence in future instead of using ...
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
toForm(\ilLanguage $language, FieldFactory $field_factory, Refinery $refinery)
 
This is how a factory for icons looks like. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
withTempFileName(string $name)
 
getObjectTypeSpecificIcon(int $object_id, IconFactory $factory, StorageService $irss)
 
__construct(private bool $custom_icons_enabled, private ?ilObjectCustomIcon $custom_icon=null, private ?ilObjectTypeSpecificPropertyProviders $object_type_specific_property_providers=null)
 
toLegacyForm(\ilLanguage $language)
 
Refinery Factory $refinery