ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Glossary\Settings\SettingsGUI Class Reference

@ilCtrl_Calls ILIAS\Glossary\Settings\SettingsGUI: ilDidacticTemplateGUI More...

+ Collaboration diagram for ILIAS\Glossary\Settings\SettingsGUI:

Public Member Functions

 __construct (protected InternalDataService $data, protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $obj_id, protected int $ref_id, protected bool $creation_mode, protected object $parent_gui, protected object $parent_obj)
 
 executeCommand ()
 

Protected Member Functions

 edit ()
 

Detailed Description

@ilCtrl_Calls ILIAS\Glossary\Settings\SettingsGUI: ilDidacticTemplateGUI

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Glossary\Settings\SettingsGUI::__construct ( protected InternalDataService  $data,
protected InternalDomainService  $domain,
protected InternalGUIService  $gui,
protected int  $obj_id,
protected int  $ref_id,
protected bool  $creation_mode,
protected object  $parent_gui,
protected object  $parent_obj 
)

Definition at line 33 of file class.SettingsGUI.php.

42 {
43 }

Member Function Documentation

◆ edit()

ILIAS\Glossary\Settings\SettingsGUI::edit ( )
protected

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

68 : void
69 {
70 $mt = $this->gui->ui()->mainTemplate();
71 $form = $this->getEditForm();
72 $mt->setContent($form->render());
73 }

◆ executeCommand()

ILIAS\Glossary\Settings\SettingsGUI::executeCommand ( )

Definition at line 45 of file class.SettingsGUI.php.

45 : void
46 {
47 $ctrl = $this->gui->ctrl();
48 $next_class = $ctrl->getNextClass($this);
49 $cmd = $ctrl->getCmd("edit");
50
51 switch ($next_class) {
52 case strtolower(\ilDidacticTemplateGUI::class):
53 $ctrl->setReturn($this, 'edit');
54 $did = new \ilDidacticTemplateGUI(
55 $this->parent_gui,
56 $this->getEditForm()->getDidacticTemplateIdFromRequest()
57 );
58 $ctrl->forwardCommand($did);
59 break;
60
61 default:
62 if (in_array($cmd, ["edit", "save"])) {
63 $this->$cmd();
64 }
65 }
66 }

References ILIAS\Repository\Form\getDidacticTemplateIdFromRequest().

+ Here is the call graph for this function:

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