ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
22 protected $lng;
23
24 public function __construct()
25 {
26 global $DIC;
27 $this->lng = $DIC['lng'];
28 }
29
30 public function getForm($action)
31 {
32 $this->form = new ilPropertyFormGUI();
33 $this->form->setFormAction($action);
34 $this->form->setTitle($this->lng->txt('settings'));
35
36 $activation_checkbox = new ilCheckboxInputGUI($this->lng->txt('activate'), 'activate');
37 $this->form->addItem($activation_checkbox);
38
39 $this->form->addCommandButton('save', $this->lng->txt('save'));
40 $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
41
42 return $this->form;
43 }
44}
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
$action
global $DIC
Definition: saml.php:7