37 $lng = $this->service->language();
38 $lng->loadLanguageModule(
"obj");
39 $lng->loadLanguageModule(
"cntr");
49 if ($this->service->settings()->get(
'custom_icons')) {
50 if (!is_null($this->legacy_form)) {
53 require_once
'Services/Object/Icon/classes/class.ilObjectCustomIconConfigurationGUI.php';
54 $gui = new \ilObjectCustomIconConfigurationGUI($DIC, null, $this->
object);
55 $gui->addSettingsToForm($this->legacy_form);
68 if ($this->service->settings()->get(
'custom_icons')) {
69 if (!is_null($this->legacy_form)) {
71 require_once
'Services/Object/Icon/classes/class.ilObjectCustomIconConfigurationGUI.php';
72 $gui = new \ilObjectCustomIconConfigurationGUI($DIC, null, $this->
object);
73 $gui->saveIcon($this->legacy_form);
83 $lng = $this->service->language();
84 $tile_image_fac = $this->service->commonSettings()->tileImage();
86 if (!is_null($this->legacy_form)) {
90 $tile_image = $tile_image_fac->getByObjId($this->object->getId());
91 $timg = new \ilImageFileInputGUI(
$lng->txt(
'obj_tile_image'),
'tile_image');
92 $timg->setInfo(
$lng->txt(
'obj_tile_image_info'));
93 $timg->setSuffixes($tile_image_fac->getSupportedFileExtensions());
94 $timg->setUseCache(
false);
95 if ($tile_image->exists()) {
96 $timg->setImage($tile_image->getFullPath());
100 $this->legacy_form->addItem($timg);
117 $tile_image_fac = $this->service->commonSettings()->tileImage();
119 if (!is_null($this->legacy_form)) {
120 $tile_image = $tile_image_fac->getByObjId($this->object->getId());
123 $item = $this->legacy_form->getItemByPostVar(
'tile_image');
124 if ($item->getDeletionFlag()) {
125 $tile_image->delete();
128 $file_data = $this->legacy_form->getInput(
'tile_image');
129 if ($file_data[
'tmp_name']) {
130 $tile_image->saveFromHttpRequest($file_data[
'tmp_name']);
140 $lng = $this->service->language();
143 $this->legacy_form->addItem($hide);
152 if (!is_null($this->legacy_form)) {
155 $this->object->getId(),
156 "hide_header_icon_and_title",
157 !$this->legacy_form->getInput(
"show_header_icon_and_title")
167 $lng = $this->service->language();
170 $this->legacy_form->addItem($hide);
179 if (!is_null($this->legacy_form)) {
182 $this->object->getId(),
184 !$this->legacy_form->getInput(
"show_top_actions")
static _writeContainerSetting($a_id, $a_keyword, $a_value)
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.