ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjectCustomIconConfigurationGUI Class Reference
+ Collaboration diagram for ilObjectCustomIconConfigurationGUI:

Public Member Functions

 __construct (Container $dic, $parentGui, ilObject $object)
 
 executeCommand ()
 
 addSettingsToForm (ilPropertyFormGUI $form)
 

Protected Member Functions

 showForm (?ilPropertyFormGUI $form=null)
 
 getForm ()
 
 saveForm ()
 

Protected Attributes

const DEFAULT_CMD = 'showForm'
 
Container $dic
 
ilObject $object
 
 $parentGui
 
ilGlobalTemplateInterface $main_tpl
 

Detailed Description

Definition at line 23 of file class.ilObjectCustomIconConfigurationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectCustomIconConfigurationGUI::__construct ( Container  $dic,
  $parentGui,
ilObject  $object 
)

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

References $DIC, $dic, $object, and $parentGui.

34  {
35  global $DIC;
36  $this->main_tpl = $DIC->ui()->mainTemplate();
37  $this->dic = $dic;
38  $this->parentGui = $parentGui;
39  $this->object = $object;
40  }
global $DIC
Definition: shib_login.php:22

Member Function Documentation

◆ addSettingsToForm()

ilObjectCustomIconConfigurationGUI::addSettingsToForm ( ilPropertyFormGUI  $form)
Todo:
Before the end of this!

Definition at line 82 of file class.ilObjectCustomIconConfigurationGUI.php.

Referenced by getForm().

82  : void
83  {
87  throw new Exception('Not Implemented Exception!');
88  }
+ Here is the caller graph for this function:

◆ executeCommand()

ilObjectCustomIconConfigurationGUI::executeCommand ( )

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

42  : void
43  {
44  $this->dic->ctrl()->getNextClass($this);
45  $cmd = $this->dic->ctrl()->getCmd(self::DEFAULT_CMD);
46 
47  switch (true) {
48  case method_exists($this, $cmd):
49  $this->{$cmd}();
50  break;
51 
52  default:
53  $this->{self::DEFAULT_CMD}();
54  break;
55  }
56  }

◆ getForm()

ilObjectCustomIconConfigurationGUI::getForm ( )
protected

Definition at line 67 of file class.ilObjectCustomIconConfigurationGUI.php.

References addSettingsToForm().

Referenced by saveForm(), and showForm().

68  {
69  $this->dic->language()->loadLanguageModule('cntr');
70 
71  $form = new ilPropertyFormGUI();
72  $form->setFormAction($this->dic->ctrl()->getFormAction($this, 'saveForm'));
73  $form->setTitle($this->dic->language()->txt('icon_settings'));
74 
75  $this->addSettingsToForm($form);
76 
77  $form->addCommandButton('saveForm', $this->dic->language()->txt('save'));
78 
79  return $form;
80  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveForm()

ilObjectCustomIconConfigurationGUI::saveForm ( )
protected

Definition at line 90 of file class.ilObjectCustomIconConfigurationGUI.php.

References getForm(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), ILIAS\Repository\object(), and showForm().

90  : void
91  {
92  $form = $this->getForm();
93  if ($form->checkInput()) {
94  $this->saveIcon($form);
95 
96  $this->main_tpl->setOnScreenMessage('success', $this->dic->language()->txt('msg_obj_modified'), true);
97  $this->dic->ctrl()->redirect($this, 'showForm');
98  }
99 
100  $form->setValuesByPost();
101  $this->showForm($form);
102  }
+ Here is the call graph for this function:

◆ showForm()

ilObjectCustomIconConfigurationGUI::showForm ( ?ilPropertyFormGUI  $form = null)
protected

Definition at line 58 of file class.ilObjectCustomIconConfigurationGUI.php.

References getForm(), and null.

Referenced by saveForm().

58  : void
59  {
60  if (null === $form) {
61  $form = $this->getForm();
62  }
63 
64  $this->dic->ui()->mainTemplate()->setContent($form->getHTML());
65  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $dic

Container ilObjectCustomIconConfigurationGUI::$dic
protected

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

Referenced by __construct().

◆ $main_tpl

ilGlobalTemplateInterface ilObjectCustomIconConfigurationGUI::$main_tpl
protected

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

◆ $object

ilObject ilObjectCustomIconConfigurationGUI::$object
protected

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

Referenced by __construct().

◆ $parentGui

ilObjectCustomIconConfigurationGUI::$parentGui
protected

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

Referenced by __construct().

◆ DEFAULT_CMD

const ilObjectCustomIconConfigurationGUI::DEFAULT_CMD = 'showForm'
protected

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


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