3 declare(strict_types=1);
33 $lng = $this->service->language();
34 $lng->loadLanguageModule(
'obj');
35 $lng->loadLanguageModule(
'cntr');
42 if (!is_null($this->legacy_form) && $this->service->settings()->get(
'custom_icons')) {
46 $gui->addSettingsToForm($this->legacy_form);
56 if (!is_null($this->legacy_form) && $this->service->settings()->get(
'custom_icons')) {
59 $gui->saveIcon($this->legacy_form);
65 $lng = $this->service->language();
66 $tile_image_fac = $this->service->commonSettings()->tileImage();
68 if (!is_null($this->legacy_form)) {
72 $tile_image = $tile_image_fac->getByObjId($this->
object->getId());
75 $timg->setSuffixes($tile_image_fac->getSupportedFileExtensions());
76 $timg->setUseCache(
false);
77 if ($tile_image->exists()) {
78 $timg->setImage($tile_image->getFullPath());
82 $this->legacy_form->addItem($timg);
90 $tile_image_fac = $this->service->commonSettings()->tileImage();
92 if (!is_null($this->legacy_form)) {
93 $tile_image = $tile_image_fac->getByObjId($this->
object->getId());
96 $item = $this->legacy_form->getItemByPostVar(
'tile_image');
97 if ($item && $item->getDeletionFlag()) {
98 $tile_image->delete();
101 $file_data = $this->legacy_form->getInput(
'tile_image');
102 if (isset($file_data[
'tmp_name']) && $file_data[
'tmp_name'] &&
103 isset($file_data[
'size']) && $file_data[
'size'] > 0) {
104 $tile_image->saveFromHttpRequest($file_data[
'tmp_name']);
112 $this->service->language()->txt(
'obj_show_title_and_icon'),
113 'show_header_icon_and_title' 119 $this->legacy_form->addItem($hide);
126 if (!is_null($this->legacy_form)) {
130 'hide_header_icon_and_title',
131 (string) !$this->legacy_form->getInput(
'show_header_icon_and_title')
139 $this->service->language()->txt(
'obj_show_header_actions'),
146 $this->legacy_form->addItem($hide);
153 if (!is_null($this->legacy_form)) {
158 (string) !$this->legacy_form->getInput(
'show_top_actions')
static _lookupContainerSetting(int $a_id, string $a_keyword, string $a_default_value=null)
static _writeContainerSetting(int $a_id, string $a_keyword, string $a_value)