ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjectCommonSettings.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26use ILIAS\ResourceStorage\Services as ResourceStorageServices;
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}
Class Services.
Definition: Services.php:38
language handling
storePropertyTitleAndIconVisibility(TitleAndIconVisibility $property_title_and_icon_visibility)
storePropertyHeaderActionVisibility(HeaderActionVisibility $property_header_action_visibility)
__construct(private ilLanguage $language, private FileUpload $upload, private ResourceStorageServices $storage, private Services $http, private TileImage\Stakeholder $stakeholder, private TileImage\FlavourDefinition $flavour)
storePropertyIcon(Icon $property_icon)
storePropertyTileImage(TileImage\Property $property_tile_image)
legacyForm(ilPropertyFormGUI $form, ilObject $object)
@depricated 11: This function will be remove with ILIAS 11.
Class ilObject Basic functions for all objects.
This class represents a property form user interface.
$http
Definition: deliver.php:30
static http()
Fetches the global http state from ILIAS.