19declare(strict_types=1);
43 $this->
http->request(),
64 $this->
lng->loadLanguageModule(
'adm');
67 switch ($this->
ctrl->getNextClass($this)) {
68 case strtolower(ilPermissionGUI::class):
69 $this->tabs_gui->activateTab(
'perm_settings');
73 case strtolower(HeaderTitleGUI::class):
74 $this->tabs_gui->activateTab(
'header_title');
78 case strtolower(ContactInformationGUI::class):
79 $this->tabs_gui->activateTab(
'contact_data');
84 $this->tabs_gui->activateTab(
'basic_settings');
86 $cmd = $this->
ctrl->getCmd(
"view");
102 $this->tabs_gui->addTab(
104 $this->
lng->txt(
'basic_settings'),
105 $this->ctrl->getLinkTarget($this)
108 $this->tabs_gui->addTab(
110 $this->
lng->txt(
'header_title'),
111 $this->ctrl->getLinkTargetByClass([HeaderTitleGUI::class]),
114 $this->tabs_gui->addTab(
116 $this->
lng->txt(
'contact_data'),
117 $this->ctrl->getLinkTargetByClass([ContactInformationGUI::class]),
121 $this->tabs_gui->addTab(
123 $this->
lng->txt(
'perm_settings'),
124 $this->ctrl->getLinkTargetByClass([self::class, ilPermissionGUI::class],
'perm')
141 if ($form->checkInput()) {
142 $this->
settings->set(
"short_inst_name", $form->getInput(
"short_inst_name"));
145 $public_section->setEnabled((
bool) $form->getInput(
'pub_section'));
148 foreach ((array) $form->getInput(
'public_section_domains') as $domain) {
149 if (strlen(trim($domain)) !== 0) {
150 $domains[] = $domain;
153 $public_section->setDomains($domains);
154 $public_section->save();
156 $global_profiles = ($form->getInput(
"pub_section"))
157 ? (
int) $form->getInput(
'enable_global_profiles')
159 $this->
settings->set(
'enable_global_profiles', (
string) $global_profiles);
161 $this->
settings->set(
"open_google", $form->getInput(
"open_google"));
162 $this->
settings->set(
"locale", $form->getInput(
"locale"));
164 $this->tpl->setOnScreenMessage(GlobalTemplate::MESSAGE_TYPE_SUCCESS, $this->
lng->txt(
"msg_obj_modified"),
true);
165 $this->
ctrl->redirect($this);
168 $form->setValuesByPost();
169 $this->tpl->setContent($form->getHtml());
175 $this->
lng->loadLanguageModule(
"pd");
179 $ti->setMaxLength(200);
181 $ti->setValue($this->
settings->get(
"short_inst_name"));
182 $ti->setInfo($this->
lng->txt(
"short_inst_name_info"));
186 $cb->setInfo($this->
lng->txt(
"pub_section_info"));
188 $cb->setChecked(
true);
192 $this->
lng->loadLanguageModule(
'administration');
193 $domains =
new ilTextInputGUI($this->
lng->txt(
'adm_pub_section_domain_filter'),
'public_section_domains');
194 $domains->setInfo($this->
lng->txt(
'adm_pub_section_domain_filter_info'));
195 $domains->setMulti(
true);
199 $cb->addSubItem($domains);
202 $cb_prop =
new ilCheckboxInputGUI($this->
lng->txt(
'pd_enable_user_publish'),
'enable_global_profiles');
203 $cb_prop->setInfo($this->
lng->txt(
'pd_enable_user_publish_info'));
204 $cb_prop->setChecked((
bool) $this->
settings->get(
'enable_global_profiles'));
205 $cb->addSubItem($cb_prop);
210 $cb2->setInfo($this->
lng->txt(
"enable_search_engine"));
211 $form->addItem($cb2);
213 if (!$robot_settings->checkRewrite()) {
214 $cb2->setAlert($this->
lng->txt(
"allow_override_alert"));
215 $cb2->setChecked(
false);
216 $cb2->setDisabled(
true);
217 } elseif ($this->
settings->get(
"open_google")) {
218 $cb2->setChecked(
true);
223 $ti->setMaxLength(80);
225 $ti->setInfo($this->
lng->txt(
"adm_locale_info"));
226 $ti->setValue($this->
settings->get(
"locale"));
231 $form->addCommandButton(
"update", $this->
lng->txt(
"save"));
234 $form->setTitle($this->
lng->txt(
"basic_settings"));
235 $form->setFormAction($this->
ctrl->getFormAction($this));
@ilCtrl_isCalledBy ilObjGeneralSettingsGUI: ilAdministrationGUI @ilCtrl_Calls ilObjGeneralSettingsGUI...
getType()
Functions that must be overwritten.
executeCommand()
execute command
getAdminTabs()
administration tabs show only permissions and trash folder
view()
view object content (repository/workspace switch)
getContactInformationGUI()
New implementation of ilObjectGUI.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $node_id=null)
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
prepareOutput(bool $show_sub_objects=true)
static getInstance()
get singleton instance
This class represents a text property in a property form.
static http()
Fetches the global http state from ILIAS.