ILIAS  release_8 Revision v8.24
ilLTIConsumeProviderSettingsGUI Class Reference
+ Collaboration diagram for ilLTIConsumeProviderSettingsGUI:

Public Member Functions

 __construct (ilObjLTIConsumer $object, ilLTIConsumerAccess $access)
 ilLTIConsumerAccess constructor. More...
 
 executeCommand ()
 Execute Command. More...
 

Data Fields

const CMD_SHOW_SETTINGS = 'showSettings'
 
const CMD_SAVE_SETTINGS = 'saveSettings'
 

Protected Member Functions

 showSettingsCmd (ilLTIConsumeProviderFormGUI $form=null)
 
 saveSettingsCmd ()
 
 buildForm (ilLTIConsumeProvider $provider)
 

Protected Attributes

ilObjLTIConsumer $object
 
ilLTIConsumerAccess $access
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilLTIConsumeProviderSettingsGUI::__construct ( ilObjLTIConsumer  $object,
ilLTIConsumerAccess  $access 
)

ilLTIConsumerAccess constructor.

Definition at line 47 of file class.ilLTIConsumeProviderSettingsGUI.php.

References $access, $object, and ILIAS\Repository\access().

+ Here is the call graph for this function:

Member Function Documentation

◆ buildForm()

ilLTIConsumeProviderSettingsGUI::buildForm ( ilLTIConsumeProvider  $provider)
protected
Exceptions
ilCtrlException

Definition at line 98 of file class.ilLTIConsumeProviderSettingsGUI.php.

99 {
100 global $DIC; /* @var \ILIAS\DI\Container $DIC */
101
103
104 $form->initForm(
105 $DIC->ctrl()->getFormAction($this),
106 self::CMD_SAVE_SETTINGS,
107 self::CMD_SHOW_SETTINGS
108 );
109
110 return $form;
111 }
global $DIC
Definition: feed.php:28
$provider
Definition: ltitoken.php:83

References $DIC, and $provider.

Referenced by saveSettingsCmd(), and showSettingsCmd().

+ Here is the caller graph for this function:

◆ executeCommand()

ilLTIConsumeProviderSettingsGUI::executeCommand ( )

Execute Command.

Definition at line 56 of file class.ilLTIConsumeProviderSettingsGUI.php.

56 : void
57 {
58 global $DIC; /* @var \ILIAS\DI\Container $DIC */
59
60 switch ($DIC->ctrl()->getNextClass()) {
61 default:
62
63 $command = $DIC->ctrl()->getCmd(self::CMD_SHOW_SETTINGS) . 'Cmd';
64 $this->{$command}();
65 }
66 }

References $DIC.

◆ saveSettingsCmd()

ilLTIConsumeProviderSettingsGUI::saveSettingsCmd ( )
protected

Definition at line 79 of file class.ilLTIConsumeProviderSettingsGUI.php.

79 : void
80 {
81 global $DIC; /* @var \ILIAS\DI\Container $DIC */
82
83 $provider = $this->object->getProvider();
84 $form = $this->buildForm($provider);
85
86 if ($form->checkInput()) {
87 $form->initProvider($provider);
88 $this->object->getProvider()->save();
89 $DIC->ctrl()->redirect($this, self::CMD_SHOW_SETTINGS);
90 }
91
92 $this->showSettingsCmd($form);
93 }
showSettingsCmd(ilLTIConsumeProviderFormGUI $form=null)

References $DIC, $provider, buildForm(), and showSettingsCmd().

+ Here is the call graph for this function:

◆ showSettingsCmd()

ilLTIConsumeProviderSettingsGUI::showSettingsCmd ( ilLTIConsumeProviderFormGUI  $form = null)
protected

Definition at line 68 of file class.ilLTIConsumeProviderSettingsGUI.php.

68 : void
69 {
70 global $DIC; /* @var \ILIAS\DI\Container $DIC */
71
72 if ($form === null) {
73 $form = $this->buildForm($this->object->getProvider());
74 }
75
76 $DIC->ui()->mainTemplate()->setContent($form->getHTML());
77 }

References $DIC, buildForm(), and ILIAS\Repository\object().

Referenced by saveSettingsCmd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilLTIConsumerAccess ilLTIConsumeProviderSettingsGUI::$access
protected

Definition at line 42 of file class.ilLTIConsumeProviderSettingsGUI.php.

Referenced by __construct().

◆ $object

ilObjLTIConsumer ilLTIConsumeProviderSettingsGUI::$object
protected

Definition at line 37 of file class.ilLTIConsumeProviderSettingsGUI.php.

Referenced by __construct().

◆ CMD_SAVE_SETTINGS

const ilLTIConsumeProviderSettingsGUI::CMD_SAVE_SETTINGS = 'saveSettings'

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

◆ CMD_SHOW_SETTINGS

const ilLTIConsumeProviderSettingsGUI::CMD_SHOW_SETTINGS = 'showSettings'

Definition at line 31 of file class.ilLTIConsumeProviderSettingsGUI.php.


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