ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilWorkflowEngineSettingsForm.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5require_once './Services/Form/classes/class.ilPropertyFormGUI.php';
6
17{
19 protected $form;
20
24 protected $dic;
25
27 protected $lng;
28
29 public function __construct()
30 {
31 global $DIC;
32 $this->dic = $DIC;
33 $this->lng = $this->dic->language();
34 }
35
36 public function getForm($action)
37 {
38 $this->form = new ilPropertyFormGUI();
39 $this->form->setFormAction($action);
40 $this->form->setTitle($this->lng->txt('settings'));
41
42 $activation_checkbox = new ilCheckboxInputGUI($this->lng->txt('activate'), 'activate');
43 $activation_checkbox->setDisabled(true);
44 $this->form->addItem($activation_checkbox);
45
46 if ($this->dic->rbac()->system()->checkAccess("visible,read", (int) $_GET['ref_id'])) {
47 //$this->form->addCommandButton('save', $this->lng->txt('save'));
48 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
49 }
50
51 return $this->form;
52 }
53}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
This class represents a checkbox property in a property form.
This class represents a property form user interface.
@noinspection PhpIncludeInspection
global $DIC
Definition: goto.php:24