ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilTermDefinitionEditorGUI 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 ilTermDefinitionEditorGUI:

Public Member Functions

 __construct ()
 
 setTabs ()
 
 getTabs ()
 
 saveShortText ()
 

Data Fields

ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilObjGlossary $glossary
 
ilGlossaryTerm $term
 

Protected Attributes

ilObjGlossary $term_glossary
 
ILIAS Glossary Editing EditingGUIRequest $request
 
ilCtrl $ctrl
 
ilTabsGUI $tabs_gui
 
ILIAS Style Content GUIService $content_style_gui
 
ILIAS Style Content Object ObjectFacade $content_style_domain
 

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 GUI class for glossary term definition editor

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilTermDefinitionEditorGUI: ilGlossaryDefPageGUI

Definition at line 24 of file class.ilTermDefinitionEditorGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTermDefinitionEditorGUI::__construct ( )

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

38 {
39 global $DIC;
40
41 $tpl = $DIC["tpl"];
42 $lng = $DIC->language();
43 $ilCtrl = $DIC->ctrl();
44 $ilTabs = $DIC->tabs();
45
46 // initiate variables
47 $this->tpl = $tpl;
48 $this->lng = $lng;
49 $this->ctrl = $ilCtrl;
50 $this->request = $DIC->glossary()
51 ->internal()
52 ->gui()
53 ->editing()
54 ->request();
55
56
57 $this->glossary = new ilObjGlossary($this->request->getRefId(), true);
58 if (($this->request->getTableGlossaryTermListAction() == "editDefinition")
59 && !empty($this->request->getTableGlossaryTermListIds())) {
60 $term_id = (int) $this->request->getTableGlossaryTermListIds()[0];
61 $this->term = new ilGlossaryTerm($term_id);
62 } else {
63 $this->term = new ilGlossaryTerm($this->request->getTermId());
64 }
65 $this->term_glossary = new ilObjGlossary(ilGlossaryTerm::_lookGlossaryID($this->term->getId()), false);
66 $this->tabs_gui = $ilTabs;
67
68 $this->ctrl->saveParameter($this, array("term"));
69
70 $cs = $DIC->contentStyle();
71 $this->content_style_gui = $cs->gui();
72 $this->content_style_domain = $cs->domain()->styleForRefId($this->glossary->getRefId());
73 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookGlossaryID(int $term_id)
get glossary id form term id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, $tpl, ilGlossaryTerm\_lookGlossaryID(), ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getTabs()

ilTermDefinitionEditorGUI::getTabs ( )

Definition at line 181 of file class.ilTermDefinitionEditorGUI.php.

181 : void
182 {
183 // back to glossary
184 $this->tabs_gui->setBack2Target(
185 $this->lng->txt("glossary"),
186 $this->ctrl->getLinkTargetByClass("ilobjglossarygui", "")
187 );
188
189 // back to upper context
190 $this->tabs_gui->setBackTarget(
191 $this->lng->txt("term"),
192 $this->ctrl->getLinkTargetByClass("ilglossarytermgui", "editTerm")
193 );
194 }

References ILIAS\Repository\lng().

Referenced by setTabs().

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

◆ saveShortText()

ilTermDefinitionEditorGUI::saveShortText ( )

Definition at line 196 of file class.ilTermDefinitionEditorGUI.php.

196 : void
197 {
198 $this->term->updateShortText();
199 }

◆ setTabs()

ilTermDefinitionEditorGUI::setTabs ( )

Definition at line 176 of file class.ilTermDefinitionEditorGUI.php.

176 : void
177 {
178 $this->getTabs();
179 }

References getTabs().

+ Here is the call graph for this function:

Field Documentation

◆ $content_style_domain

ILIAS Style Content Object ObjectFacade ilTermDefinitionEditorGUI::$content_style_domain
protected

Definition at line 35 of file class.ilTermDefinitionEditorGUI.php.

◆ $content_style_gui

ILIAS Style Content GUIService ilTermDefinitionEditorGUI::$content_style_gui
protected

Definition at line 34 of file class.ilTermDefinitionEditorGUI.php.

◆ $ctrl

ilCtrl ilTermDefinitionEditorGUI::$ctrl
protected

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

◆ $glossary

ilObjGlossary ilTermDefinitionEditorGUI::$glossary

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

◆ $lng

ilLanguage ilTermDefinitionEditorGUI::$lng

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

Referenced by __construct().

◆ $request

ILIAS Glossary Editing EditingGUIRequest ilTermDefinitionEditorGUI::$request
protected

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

◆ $tabs_gui

ilTabsGUI ilTermDefinitionEditorGUI::$tabs_gui
protected

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

◆ $term

ilGlossaryTerm ilTermDefinitionEditorGUI::$term

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

◆ $term_glossary

ilObjGlossary ilTermDefinitionEditorGUI::$term_glossary
protected

Definition at line 26 of file class.ilTermDefinitionEditorGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilTermDefinitionEditorGUI::$tpl

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

Referenced by __construct().


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