ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWorkflowEngineSettingsForm Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilWorkflowEngineSettingsForm:

Public Member Functions

 __construct ()
 
 getForm (string $action)
 

Protected Attributes

ilPropertyFormGUI $form
 
ILIAS DI Container $dic
 
ilLanguage $lng
 

Private Attributes

ILIAS WorkflowEngine Service $service
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Settings Form

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de /

Definition at line 25 of file class.ilWorkflowEngineSettingsForm.php.

Constructor & Destructor Documentation

◆ __construct()

ilWorkflowEngineSettingsForm::__construct ( )

Definition at line 32 of file class.ilWorkflowEngineSettingsForm.php.

References $DIC, and ILIAS\Repository\lng().

33  {
34  global $DIC;
35  $this->dic = $DIC;
36  $this->lng = $this->dic->language();
37  $this->service = $DIC->workflowEngine();
38  }
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

Member Function Documentation

◆ getForm()

ilWorkflowEngineSettingsForm::getForm ( string  $action)

Definition at line 40 of file class.ilWorkflowEngineSettingsForm.php.

References $form, ILIAS\Repository\form(), ILIAS\Repository\lng(), and ilFormPropertyGUI\setDisabled().

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  }
This class represents a checkbox property in a property form.
form( $class_path, string $cmd)
setDisabled(bool $a_disabled)
+ Here is the call graph for this function:

Field Documentation

◆ $dic

ILIAS DI Container ilWorkflowEngineSettingsForm::$dic
protected

Definition at line 29 of file class.ilWorkflowEngineSettingsForm.php.

◆ $form

ilPropertyFormGUI ilWorkflowEngineSettingsForm::$form
protected

Definition at line 28 of file class.ilWorkflowEngineSettingsForm.php.

Referenced by getForm().

◆ $lng

ilLanguage ilWorkflowEngineSettingsForm::$lng
protected

Definition at line 30 of file class.ilWorkflowEngineSettingsForm.php.

◆ $service

ILIAS WorkflowEngine Service ilWorkflowEngineSettingsForm::$service
private

Definition at line 27 of file class.ilWorkflowEngineSettingsForm.php.


The documentation for this class was generated from the following file: