19declare(strict_types=1);
42 private bool $has_write_access
48 $cmd = $this->
ctrl->getCmd(
"view");
55 if ($this->has_write_access) {
62 public function view(): void
64 $this->tpl->setContent($this->
buildForm()->getHTML());
70 if ($form->checkInput()) {
71 $this->
settings->set(
'rpc_pdf_font', $form->getInput(
'rpc_pdf_font'));
72 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
73 $this->
ctrl->redirect($this);
75 $form->setValuesByPost();
76 $this->tpl->setContent($form->getHtml());
82 $form->setFormAction($this->
ctrl->getFormAction($this,
'update'));
86 $pdf->setTitle($this->
lng->txt(
'rpc_pdf_generation'));
90 $pdf_font->setInfo($this->
lng->txt(
'rpc_pdf_font_info'));
91 $pdf_font->setSize(64);
92 $pdf_font->setMaxLength(1024);
93 $pdf_font->setRequired(
true);
94 $pdf_font->setValue($this->
settings->get(
'rpc_pdf_font',
'Helvetica, unifont'));
95 $form->addItem($pdf_font);
97 if ($this->has_write_access) {
98 $form->addCommandButton(
"update", $this->
lng->txt(
"save"));
GUI for Java Server Settings.
__construct(private ilCtrl $ctrl, private ilGlobalTemplateInterface $tpl, private ilLanguage $lng, private Setting $settings, private bool $has_write_access)
Class ilCtrl provides processing control methods.
This class represents a text property in a property form.