19declare(strict_types=1);
45 private bool $has_write_access,
51 $cmd = $this->
ctrl->getCmd(
"view");
58 if ($this->has_write_access) {
65 public function view(): void
67 $this->tpl->setContent($this->
buildForm()->getHTML());
73 if ($form->checkInput()) {
74 $fs = array(
"admin_firstname",
"admin_lastname",
"admin_title",
"admin_position",
75 "admin_institution",
"admin_street",
"admin_zipcode",
"admin_city",
76 "admin_country",
"admin_phone",
"admin_email");
88 $this->
ctrl->redirect($this);
90 $form->setValuesByPost();
91 $this->tpl->setContent($form->getHtml());
101 $ti->setMaxLength(64);
103 $ti->setRequired(
true);
104 $ti->setValue($this->
settings->get(
"admin_firstname"));
109 $ti->setMaxLength(64);
111 $ti->setRequired(
true);
112 $ti->setValue($this->
settings->get(
"admin_lastname"));
117 $ti->setMaxLength(64);
119 $ti->setValue($this->
settings->get(
"admin_title"));
124 $ti->setMaxLength(64);
126 $ti->setValue($this->
settings->get(
"admin_position"));
131 $ti->setMaxLength(200);
133 $ti->setValue($this->
settings->get(
"admin_institution"));
138 $ti->setMaxLength(64);
141 $ti->setValue($this->
settings->get(
"admin_street"));
146 $ti->setMaxLength(10);
149 $ti->setValue($this->
settings->get(
"admin_zipcode"));
154 $ti->setMaxLength(64);
157 $ti->setValue($this->
settings->get(
"admin_city"));
162 $ti->setMaxLength(64);
165 $ti->setValue($this->
settings->get(
"admin_country"));
170 $ti->setMaxLength(64);
173 $ti->setValue($this->
settings->get(
"admin_phone"));
178 $ti->setMaxLength(64);
180 $ti->setRequired(
true);
181 $ti->allowRFC822(
true);
182 $ti->setValue($this->
settings->get(
"admin_email"));
186 $ti =
new ilTextInputGUI($this->
lng->txt(
"adm_support_contacts"),
"adm_support_contacts");
187 $ti->setMaxLength(500);
190 $ti->setInfo($this->
lng->txt(
"adm_support_contacts_info"));
194 $ti =
new ilTextInputGUI($this->
lng->txt(
"adm_accessibility_contacts"),
"accessibility_support_contacts");
195 $ti->setMaxLength(500);
198 $ti->setInfo($this->
lng->txt(
"adm_accessibility_contacts_info"));
201 if ($this->has_write_access) {
202 $form->addCommandButton(
"update", $this->
lng->txt(
"save"));
205 $form->setTitle($this->
lng->txt(
"contact_data"));
206 $form->setFormAction($this->
ctrl->getFormAction($this));
Class ilCtrl provides processing control methods.
This class represents a text property in a property form.
const MESSAGE_TYPE_SUCCESS