ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilObjectCommonSettings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 
34 {
35  private ?ilObject $object = null;
36 
37  public function __construct(
38  private ilLanguage $language,
39  private FileUpload $upload,
40  private ResourceStorageServices $storage,
41  private Services $http,
42  private TileImage\Stakeholder $stakeholder,
43  private TileImage\FlavourDefinition $flavour
44  ) {
45  }
46 
48  {
49  return $this->object?->getObjectProperties()->getPropertyTitleAndIconVisibility();
50  }
51 
53  TitleAndIconVisibility $property_title_and_icon_visibility
54  ): void {
55  $this->object?->getObjectProperties()->storePropertyTitleAndIconVisibility($property_title_and_icon_visibility);
56  $this->object?->flushObjectProperties();
57  }
58 
60  {
61  return $this->object?->getObjectProperties()->getPropertyHeaderActionVisibility();
62  }
63 
65  HeaderActionVisibility $property_header_action_visibility
66  ): void {
67  $this->object?->getObjectProperties()->storePropertyHeaderActionVisibility($property_header_action_visibility);
68  $this->object?->flushObjectProperties();
69  }
70 
72  {
73  return $this->object?->getObjectProperties()->getPropertyTileImage();
74  }
75 
76  public function storePropertyTileImage(
77  TileImage\Property $property_tile_image
78  ): void {
79  $this->object?->getObjectProperties()->storePropertyTileImage($property_tile_image);
80  $this->object?->flushObjectProperties();
81  }
82 
83  public function getPropertyIcon(): ?Icon
84  {
85  return $this->object?->getObjectProperties()->getPropertyIcon();
86  }
87 
88  public function storePropertyIcon(
89  Icon $property_icon
90  ): void {
91  $this->object?->getObjectProperties()->storePropertyIcon($property_icon);
92  $this->object?->flushObjectProperties();
93  }
94 
102  {
103  $this->object = $object;
104 
106  $this->language,
107  $this->upload,
108  $this->storage,
109  $this->stakeholder,
110  $this->flavour,
111  $this,
112  $this->http,
113  $form
114  );
115  }
116 }
storePropertyHeaderActionVisibility(HeaderActionVisibility $property_header_action_visibility)
storePropertyTitleAndIconVisibility(TitleAndIconVisibility $property_title_and_icon_visibility)
storePropertyIcon(Icon $property_icon)
$http
Definition: deliver.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class FileUpload.
Definition: FileUpload.php:37
legacyForm(ilPropertyFormGUI $form, ilObject $object)
11: This function will be remove with ILIAS 11.
language()
description: > Example for rendring a language glyph.
Definition: language.php:41
storePropertyTileImage(TileImage\Property $property_tile_image)
__construct(private ilLanguage $language, private FileUpload $upload, private ResourceStorageServices $storage, private Services $http, private TileImage\Stakeholder $stakeholder, private TileImage\FlavourDefinition $flavour)