ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
class.ilWorkflowEngineSettingsForm.php
Go to the documentation of this file.
1<?php
2
26{
27 private \ILIAS\WorkflowEngine\Service $service;
29 protected \ILIAS\DI\Container $dic;
30 protected ilLanguage $lng;
31
32 public function __construct()
33 {
34 global $DIC;
35 $this->dic = $DIC;
36 $this->lng = $this->dic->language();
37 $this->service = $DIC->workflowEngine();
38 }
39
40 public function getForm(string $action): ilPropertyFormGUI
41 {
42 $this->form = new ilPropertyFormGUI();
43 $this->form->setFormAction($action);
44 $this->form->setTitle($this->lng->txt('settings'));
45
46 $activation_checkbox = new ilCheckboxInputGUI($this->lng->txt('activate'), 'activate');
47 $activation_checkbox->setDisabled(true);
48 $this->form->addItem($activation_checkbox);
49
50 if ($this->dic->rbac()->system()->checkAccess("visible,read", $this->service->internal()->request()->getRefId())) {
51 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
52 }
53
54 return $this->form;
55 }
56}
This class represents a checkbox property in a property form.
language handling
This class represents a property form user interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
form( $class_path, string $cmd)