ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 
5 require_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  $this->form->addItem($activation_checkbox);
44 
45  if ($this->dic->rbac()->system()->checkAccess("visible,read", (int) $_GET['ref_id'])) {
46  $this->form->addCommandButton('save', $this->lng->txt('save'));
47  $this->form->addCommandButton('cancel', $this->lng->txt('cancel'));
48  }
49 
50  return $this->form;
51  }
52 }
This class represents a property form user interface.
$_GET["client_id"]
This class represents a checkbox property in a property form.
$DIC
Definition: xapitoken.php:46