ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilGlossaryPresentationGUI Class Reference

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

+ Inheritance diagram for ilGlossaryPresentationGUI:
+ Collaboration diagram for ilGlossaryPresentationGUI:

Public Member Functions

 __construct (string $export_format="", string $export_dir="")
 
 initByRequest (?array $query_params=null)
 Init services and this class by request params. More...
 
 injectTemplate (ilGlobalTemplateInterface $tpl)
 
 setOfflineMode (bool $a_offline=true)
 set offline mode (content is generated for offline package) More...
 
 offlineMode ()
 checks wether offline content generation is activated More...
 
 setOfflineDirectory (string $a_dir)
 
 getOfflineDirectory ()
 
 executeCommand ()
 execute command More...
 
 prepareOutput ()
 
 basicPageGuiInit (\ilPageObjectGUI $a_page_gui)
 Basic page gui initialisation. More...
 
 listTerms ()
 
 listTermByGivenAsTable ()
 list glossary terms More...
 
 listTermByGivenAsPanel ()
 list glossary terms More...
 
 getPresentationTable ()
 Get presentation table. More...
 
 listDefinitions (int $a_ref_id=0, int $a_term_id=0, bool $a_get_html=false, bool $render_term=true, string $a_page_mode=ilPageObjectGUI::PRESENTATION, bool $render_page_container=true)
 list definitions of a term More...
 
 fullscreen ()
 
 media (string $a_mode="media")
 show media object More...
 
 setLocator ()
 
 downloadFile ()
 
 setTabs ()
 
 getLink (int $a_ref_id, string $a_cmd="", int $a_term_id=0, string $a_frame="", string $a_type="")
 
 printViewSelection ()
 
 initPrintViewSelectionForm ()
 Init print view selection form. More...
 
 printView ()
 
 getTabs ()
 
 infoScreen ()
 this one is called from the info button in the repository More...
 
 outputInfoScreen ()
 
 showTaxonomy ()
 
 showFlashcards ()
 

Protected Member Functions

 setContentStyles ()
 

Protected Attributes

ILIAS Glossary Taxonomy TaxonomyManager $tax_manager
 
ILIAS COPage Xsl XslManager $xsl
 
ILIAS GlobalScreen Services $global_screen
 
ILIAS Glossary InternalGUIService $gui
 
array $mobs
 
bool $fill_on_load_code
 
string $offline_dir
 
ilPropertyFormGUI $form
 
bool $offline
 
string $export_format
 
ilCtrl $ctrl
 
ilTabsGUI $tabs_gui
 
ilAccessHandler $access
 
ilNavigationHistory $nav_history
 
ilToolbarGUI $toolbar
 
ilObjUser $user
 
ilHelpGUI $help
 
ilObjGlossary $glossary
 
ilObjGlossaryGUI $glossary_gui
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
int $tax_node
 
int $tax_id
 
ilObjTaxonomy $tax
 
int $term_id
 
int $requested_ref_id
 
string $requested_letter
 
int $requested_def_page_id
 
string $requested_search_str
 
string $requested_file_id
 
int $requested_mob_id
 
ILIAS Style Content Service $content_style_service
 
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

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilGlossaryPresentationGUI: ilNoteGUI, ilInfoScreenGUI, ilGlossaryDefPageGUI ilGlossaryPresentationGUI: ilPresentationFullGUI, ilGlossaryFlashcardGUI, ilGlossaryFlashcardBoxGUI ilGlossaryPresentationGUI: ilPresentationTableGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilGlossaryPresentationGUI::__construct ( string  $export_format = "",
string  $export_dir = "" 
)

Definition at line 62 of file class.ilGlossaryPresentationGUI.php.

References $DIC, $export_format, $service, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), initByRequest(), ILIAS\Repository\lng(), setOfflineDirectory(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

65  {
66  global $DIC;
67 
68  $service = $DIC->glossary()->internal();
69  $domain = $service->domain();
70 
71  $this->gui = $gui = $service->gui();
72 
73  $this->access = $DIC->access();
74  $this->user = $domain->user();
75  $this->lng = $DIC->language();
76 
77  $this->toolbar = $gui->toolbar();
78  $this->help = $gui->help();
79  $this->nav_history = $DIC["ilNavigationHistory"];
80  $this->tpl = $gui->ui()->mainTemplate();
81  $this->ctrl = $gui->ctrl();
82  $this->tabs_gui = $gui->tabs();
83  $this->global_screen = $gui->globalScreen();
84 
85  $this->export_format = $export_format;
86  $this->setOfflineDirectory($export_dir);
87  $this->offline = ($export_format !== "");
88 
89  $this->ctrl->saveParameter($this, array("ref_id", "letter", "tax_node"));
90  $this->content_style_service =
91  $DIC->contentStyle();
92  $this->initByRequest();
93  $this->xsl = $DIC->copage()->internal()->domain()->xsl();
94  $this->tax_manager = $domain->taxonomy($this->glossary);
95  }
initByRequest(?array $query_params=null)
Init services and this class by request params.
ILIAS Glossary InternalGUIService $gui
global $DIC
Definition: shib_login.php:22
$service
Definition: ltiservices.php:40
+ Here is the call graph for this function:

Member Function Documentation

◆ basicPageGuiInit()

ilGlossaryPresentationGUI::basicPageGuiInit ( \ilPageObjectGUI  $a_page_gui)

Basic page gui initialisation.

Definition at line 269 of file class.ilGlossaryPresentationGUI.php.

References ILIAS\Repository\ctrl(), ilPageObjectGUI\getId(), getLink(), getOfflineDirectory(), offlineMode(), ilPageObjectGUI\setFileDownloadLink(), ilPageObjectGUI\setFullscreenLink(), ilPageObjectGUI\setOfflineDirectory(), ilPageObjectGUI\setOutputMode(), and ilPageObjectGUI\setStyleId().

Referenced by executeCommand(), and listDefinitions().

271  : void {
272  $a_page_gui->setStyleId($this->content_style_domain->getEffectiveStyleId());
273  if (!$this->offlineMode()) {
274  $a_page_gui->setOutputMode("presentation");
275  $this->fill_on_load_code = true;
276  } else {
277  $a_page_gui->setOutputMode("offline");
278  $a_page_gui->setOfflineDirectory($this->getOfflineDirectory());
279  $this->fill_on_load_code = false;
280  }
281  if (!$this->offlineMode()) {
282  $this->ctrl->setParameter($this, "pg_id", $a_page_gui->getId());
283  }
284  $a_page_gui->setFileDownloadLink($this->getLink($this->requested_ref_id, "downloadFile"));
285  $a_page_gui->setFullscreenLink($this->getLink($this->requested_ref_id, "fullscreen"));
286  }
offlineMode()
checks wether offline content generation is activated
getLink(int $a_ref_id, string $a_cmd="", int $a_term_id=0, string $a_frame="", string $a_type="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFile()

ilGlossaryPresentationGUI::downloadFile ( )

Definition at line 615 of file class.ilGlossaryPresentationGUI.php.

References $access, $lng, and exit.

615  : void
616  {
617  $ilAccess = $this->access;
618  $lng = $this->lng;
619 
620  if (!$ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
621  throw new ilPermissionException($lng->txt("permission_denied"));
622  }
623 
624  $file = explode("_", $this->requested_file_id);
625  $fileObj = new ilObjFile($file[count($file) - 1], false);
626  $fileObj->sendFile();
627  exit;
628  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Class ilObjFile.
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ executeCommand()

ilGlossaryPresentationGUI::executeCommand ( )

execute command

Definition at line 180 of file class.ilGlossaryPresentationGUI.php.

References $access, $lng, basicPageGuiInit(), ILIAS\Repository\ctrl(), listDefinitions(), offlineMode(), outputInfoScreen(), prepareOutput(), setTabs(), and showTaxonomy().

180  : void
181  {
182  $lng = $this->lng;
183  $ilAccess = $this->access;
184 
185  $lng->loadLanguageModule("content");
186 
187  $next_class = $this->ctrl->getNextClass($this);
188  if ($this->glossary->isActiveFlashcards()) {
189  $cmd = $this->ctrl->getCmd("showFlashcards");
190  } else {
191  $cmd = $this->ctrl->getCmd("listTerms");
192  }
193 
194  // check write permission
195  if (!$ilAccess->checkAccess("read", "", $this->requested_ref_id) &&
196  !($ilAccess->checkAccess("visible", "", $this->requested_ref_id) &&
197  ($cmd == "infoScreen" || strtolower($next_class) == "ilinfoscreengui"))) {
198  throw new ilPermissionException($lng->txt("permission_denied"));
199  }
200 
201  if ($cmd != "listDefinitions") {
202  $this->prepareOutput();
203  }
204 
205  switch ($next_class) {
206  case "ilnotegui":
207  $this->setTabs();
208  $ret = $this->listDefinitions();
209  break;
210 
211  case "ilinfoscreengui":
212  $ret = $this->outputInfoScreen();
213  break;
214 
215  case "ilpresentationfullgui":
216  $this->setTabs();
217  $this->showTaxonomy();
218  $full_gui = $this->gui->presentation()
219  ->PresentationFullGUI($this, $this->glossary, $this->offlineMode(), $this->tax_node);
220  $this->ctrl->forwardCommand($full_gui);
221  break;
222 
223  case "ilpresentationtablegui":
224  $this->setTabs();
225  $this->showTaxonomy();
226  $pt_gui = $this->gui->presentation()
227  ->PresentationTableGUI($this, $this->glossary, $this->offlineMode(), $this->tax_node);
228  $this->ctrl->forwardCommand($pt_gui);
229  break;
230 
231  case "ilglossarydefpagegui":
232  $page_gui = new ilGlossaryDefPageGUI($this->requested_def_page_id);
233  $this->basicPageGuiInit($page_gui);
234  $this->ctrl->forwardCommand($page_gui);
235  break;
236 
237  case "ilglossaryflashcardgui":
238  $flash_gui = new ilGlossaryFlashcardGUI();
239  $this->ctrl->forwardCommand($flash_gui);
240  break;
241 
242  case "ilglossaryflashcardboxgui":
243  $flash_box_gui = new ilGlossaryFlashcardBoxGUI();
244  $this->ctrl->forwardCommand($flash_box_gui);
245  break;
246 
247  default:
248  $this->$cmd();
249  break;
250  }
251  $this->tpl->printToStdout();
252  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
basicPageGuiInit(\ilPageObjectGUI $a_page_gui)
Basic page gui initialisation.
GUI class for glossary flashcard boxes.
loadLanguageModule(string $a_module)
Load language module.
GUI class for glossary flashcards.
listDefinitions(int $a_ref_id=0, int $a_term_id=0, bool $a_get_html=false, bool $render_term=true, string $a_page_mode=ilPageObjectGUI::PRESENTATION, bool $render_page_container=true)
list definitions of a term
offlineMode()
checks wether offline content generation is activated
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ fullscreen()

ilGlossaryPresentationGUI::fullscreen ( )

Definition at line 535 of file class.ilGlossaryPresentationGUI.php.

References media().

535  : string
536  {
537  $html = $this->media("fullscreen");
538  return $html;
539  }
media(string $a_mode="media")
show media object
+ Here is the call graph for this function:

◆ getLink()

ilGlossaryPresentationGUI::getLink ( int  $a_ref_id,
string  $a_cmd = "",
int  $a_term_id = 0,
string  $a_frame = "",
string  $a_type = "" 
)

Definition at line 635 of file class.ilGlossaryPresentationGUI.php.

References ILIAS\Repository\ctrl(), and offlineMode().

Referenced by basicPageGuiInit(), listDefinitions(), and media().

641  : string {
642  $link = "";
643  if ($a_cmd == "") {
644  $a_cmd = "layout";
645  }
646  //$script = "glossary_presentation.php";
647 
648  // handle online links
649  if (!$this->offlineMode()) {
650  //$link = $script."?ref_id=".$a_ref_id;
651  switch ($a_cmd) {
652  case "fullscreen":
653  $this->ctrl->setParameter($this, "term_id", $a_term_id);
654  $link = $this->ctrl->getLinkTarget($this, "fullscreen");
655  break;
656 
657  default:
658  $link .= "&cmd=" . $a_cmd;
659  if ($a_frame != "") {
660  $this->ctrl->setParameter($this, "frame", $a_frame);
661  }
662  if ($a_type != "") {
663  $this->ctrl->setParameter($this, "obj_type", $a_type);
664  }
665  $link = $this->ctrl->getLinkTarget($this, $a_cmd);
666  break;
667  }
668  } else { // handle offline links
669  switch ($a_cmd) {
670  case "fullscreen":
671  $link = "fullscreen.html"; // id is handled by xslt
672  break;
673 
674  case "glossary":
675  $link = "term_" . $a_term_id . ".html";
676  break;
677 
678  case "downloadFile":
679  case "layout":
680  default:
681  break;
682  }
683  }
684  $this->ctrl->clearParameters($this);
685  return $link;
686  }
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOfflineDirectory()

ilGlossaryPresentationGUI::getOfflineDirectory ( )

Definition at line 172 of file class.ilGlossaryPresentationGUI.php.

References $offline_dir.

Referenced by basicPageGuiInit(), and listDefinitions().

172  : string
173  {
174  return $this->offline_dir;
175  }
+ Here is the caller graph for this function:

◆ getPresentationTable()

ilGlossaryPresentationGUI::getPresentationTable ( )

Get presentation table.

Definition at line 359 of file class.ilGlossaryPresentationGUI.php.

References offlineMode().

360  {
361  $pres_table = $this->gui->presentation()->PresentationTableGUI(
362  $this,
363  $this->glossary,
364  $this->offlineMode(),
365  $this->tax_node
366  );
367  return $pres_table;
368  }
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:

◆ getTabs()

ilGlossaryPresentationGUI::getTabs ( )

Definition at line 815 of file class.ilGlossaryPresentationGUI.php.

References $access, $ctrl, $help, $lng, $requested_ref_id, ILIAS\Repository\ctrl(), offlineMode(), and ilHelpGUI\setScreenIdComponent().

Referenced by setTabs().

815  : void
816  {
817  $ilAccess = $this->access;
818  $lng = $this->lng;
819  $ilCtrl = $this->ctrl;
820  $ilHelp = $this->help;
821 
822  $ilHelp->setScreenIdComponent("glo");
823 
824  if (!$this->offlineMode()) {
825  if ($this->ctrl->getCmd() != "listDefinitions") {
826  if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
827  if ($this->glossary->isActiveFlashcards()) {
828  $this->tabs_gui->addTab(
829  "flashcards",
830  $lng->txt("glo_flashcards"),
831  $ilCtrl->getLinkTarget($this, "showFlashcards")
832  );
833  }
834  $this->tabs_gui->addTab(
835  "terms",
836  $lng->txt("content"),
837  $ilCtrl->getLinkTarget($this, "listTerms")
838  );
839  }
840 
841  $this->tabs_gui->addTab(
842  "info",
843  $lng->txt("info_short"),
844  $ilCtrl->getLinkTarget($this, "infoScreen")
845  );
846 
847 
848  // glossary menu
849  if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
850  $this->tabs_gui->addTab(
851  "print_view",
852  $lng->txt("cont_print_view"),
853  $ilCtrl->getLinkTarget($this, "printViewSelection")
854  );
855  }
856 
857  if ($ilAccess->checkAccess("write", "", $this->requested_ref_id) ||
858  $ilAccess->checkAccess("edit_content", "", $this->requested_ref_id)) {
859  $this->tabs_gui->addNonTabbedLink(
860  "editing_view",
861  $lng->txt("glo_editing_view"),
862  "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . $this->requested_ref_id
863  );
864  }
865  }
866  } else {
867  $this->tabs_gui->addTarget(
868  "cont_back",
869  "index.html#term_" . $this->term_id,
870  "",
871  ""
872  );
873  }
874  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setScreenIdComponent(string $a_comp)
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ infoScreen()

ilGlossaryPresentationGUI::infoScreen ( )

this one is called from the info button in the repository

Definition at line 879 of file class.ilGlossaryPresentationGUI.php.

References ILIAS\Repository\ctrl().

879  : void
880  {
881  $this->ctrl->redirectByClass(ilInfoScreenGUI::class, "showSummary");
882  }
+ Here is the call graph for this function:

◆ initByRequest()

ilGlossaryPresentationGUI::initByRequest ( ?array  $query_params = null)

Init services and this class by request params.

The request params are usually retrieved by HTTP request, but also adjusted during HTML exports, this is, why this method needs to be public.

Exceptions
ilGlossaryException

Definition at line 104 of file class.ilGlossaryPresentationGUI.php.

References ilGlossaryTerm\_lookGlossaryID(), and ilGlossaryTermReferences\isReferenced().

Referenced by __construct().

104  : void
105  {
106  $request = $this->gui
107  ->presentation()
108  ->request($query_params);
109 
110  $this->requested_ref_id = $request->getRefId();
111  $this->term_id = $request->getTermId();
112  $this->glossary_gui = $this->gui->presentation()->ObjGlossaryGUI($this->requested_ref_id);
113  $this->glossary = $this->glossary_gui->getGlossary();
114  $this->requested_def_page_id = $request->getDefinitionPageId();
115  $this->requested_search_str = $request->getSearchString();
116  $this->requested_file_id = $request->getFileId();
117  $this->requested_mob_id = $request->getMobId();
118 
119  // determine term id and check whether it is valid (belongs to
120  // current glossary or a virtual (online) sub-glossary)
121  $glo_ids = $this->glossary->getAllGlossaryIds();
122  $term_glo_id = ilGlossaryTerm::_lookGlossaryID($this->term_id);
123  if (!in_array($term_glo_id, $glo_ids) && !ilGlossaryTermReferences::isReferenced($glo_ids, $this->term_id)) {
124  if ($this->term_id > 0) {
125  throw new ilGlossaryException("Term ID does not match the glossary.");
126  }
127  $this->term_id = 0;
128  }
129 
130  $this->tax_node = 0;
131  $this->tax_id = $this->glossary->getTaxonomyId();
132  if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy()) {
133  $this->tax = new ilObjTaxonomy($this->tax_id);
134  }
135  $requested_tax_node = $request->getTaxNode();
136  if ($requested_tax_node > 1 && $this->tax->getTree()->readRootId() != $requested_tax_node) {
137  $this->tax_node = $requested_tax_node;
138  }
139 
140  $this->requested_letter = $request->getLetter();
141 
142  $this->content_style_domain = $this->content_style_service->domain()->styleForRefId($this->glossary->getRefId());
143  $this->content_style_gui = $this->content_style_service->gui();
144  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static isReferenced(array $a_glo_id, int $a_term_id)
Is a term referenced by a set of glossaries.
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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPrintViewSelectionForm()

ilGlossaryPresentationGUI::initPrintViewSelectionForm ( )

Init print view selection form.

Definition at line 705 of file class.ilGlossaryPresentationGUI.php.

References $ctrl, $lng, ILIAS\Repository\form(), ilRadioGroupInputGUI\setValue(), and ilSelectInputGUI\setValue().

Referenced by printView(), and printViewSelection().

705  : void
706  {
707  $lng = $this->lng;
708  $ilCtrl = $this->ctrl;
709 
710  $terms = $this->glossary->getTermList();
711 
712  $this->form = new ilPropertyFormGUI();
713  //$this->form->setTarget("print_view");
714  $this->form->setFormAction($ilCtrl->getFormAction($this));
715 
716  // selection type
717  $radg = new ilRadioGroupInputGUI($lng->txt("cont_selection"), "sel_type");
718  $radg->setValue("glossary");
719 
720  // whole glossary
721  $op1 = new ilRadioOption($lng->txt("cont_whole_glossary")
722  . " (" . $lng->txt("cont_terms") . ": " . count($terms) . ")", "glossary");
723  $radg->addOption($op1);
724 
725  // selected topic
726  if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy()) {
727  $op3 = new ilRadioOption($lng->txt("cont_selected_topic"), "sel_topic");
728  $radg->addOption($op3);
729 
730  // topic drop down
731  $si = new ilTaxAssignInputGUI(
732  $t_id,
733  false,
734  $lng->txt("cont_topic"),
735  "topic",
736  false
737  );
738  if ($this->tax_node > 0) {
739  $si->setValue($this->tax_node);
740  }
741  $op3->addSubItem($si);
742  }
743 
744  // selected terms
745  $op2 = new ilRadioOption($lng->txt("cont_selected_terms"), "selection");
746  $radg->addOption($op2);
747 
748  $nl = new ilNestedListInputGUI("", "obj_id");
749  $op2->addSubItem($nl);
750  foreach ($terms as $t) {
751  $nl->addListNode((string) $t["id"], (string) $t["term"], "0", false, false);
752  }
753 
754  $this->form->addItem($radg);
755 
756  $this->form->addCommandButton("printView", $lng->txt("cont_show_print_view"));
757  $this->form->setPreventDoubleSubmission(false);
758 
759  $this->form->setTitle($lng->txt("cont_print_selection"));
760  }
This class represents an option in a radio group.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This class represents a property in a property form.
setValue($a_value)
Set Value.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
form( $class_path, string $cmd, string $submit_caption="")
This class represents a (nested) list of checkboxes (could be extended for radio items, too)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ injectTemplate()

ilGlossaryPresentationGUI::injectTemplate ( ilGlobalTemplateInterface  $tpl)

Definition at line 146 of file class.ilGlossaryPresentationGUI.php.

References $tpl.

146  : void
147  {
148  $this->tpl = $tpl;
149  }

◆ listDefinitions()

ilGlossaryPresentationGUI::listDefinitions ( int  $a_ref_id = 0,
int  $a_term_id = 0,
bool  $a_get_html = false,
bool  $render_term = true,
string  $a_page_mode = ilPageObjectGUI::PRESENTATION,
bool  $render_page_container = true 
)

list definitions of a term

Definition at line 373 of file class.ilGlossaryPresentationGUI.php.

References $access, Vendor\Package\$e, $lng, $ref_id, $requested_ref_id, $term_id, $tpl, $user, ilObject\_getAllReferences(), ilUserSearchCache\_getInstance(), ilLMPageObject\_getPresentationTitle(), ilInternalLink\_getSourcesOfTarget(), ilLMObject\_lookupContObjID(), ilObject\_lookupTitle(), basicPageGuiInit(), ILIAS\Repository\ctrl(), ilUtil\getImagePath(), getLink(), getOfflineDirectory(), ilUserSearchCache\LAST_QUERY, ILIAS\Repository\lng(), null, offlineMode(), setContentStyles(), setLocator(), and showTaxonomy().

Referenced by executeCommand(), and printView().

380  : string {
381  $ilUser = $this->user;
382  $ilAccess = $this->access;
383  $lng = $this->lng;
384  $tpl = $this->tpl;
385 
386  if ($a_ref_id == 0) {
388  } else {
389  $ref_id = $a_ref_id;
390  }
391  if ($a_term_id == 0) {
393  } else {
394  $term_id = $a_term_id;
395  }
396 
397  if (!$ilAccess->checkAccess("read", "", $ref_id)) {
398  throw new ilPermissionException($lng->txt("permission_denied"));
399  }
400 
401  try {
402  $term = new ilGlossaryTerm($term_id);
403  } catch (Exception $e) {
404  return "";
405  }
406 
407  if (!$a_get_html) {
409 
410  $this->setContentStyles();
411 
412  if (!$this->offlineMode()) {
413  $this->setLocator();
414  }
415 
416  $tpl->setTitleIcon(ilUtil::getImagePath("standard/icon_glo.svg"));
417  $tpl->setTitle($this->lng->txt("cont_term") . ": " . $term->getTerm());
418 
419  // advmd block
420  $cmd = null;
421  if ($ilAccess->checkAccess("write", "", $this->requested_ref_id)) {
422  $cmd = array("edit" => $this->ctrl->getLinkTargetByClass(array("ilglossaryeditorgui", "ilobjglossarygui", "ilglossarytermgui", "ilobjectmetadatagui"), ""));
423  }
424  $mdgui = new ilObjectMetaDataGUI($this->glossary, "term", $term->getId());
425  $tpl->setRightContent($mdgui->getBlockHTML($cmd));
426  }
427 
428  $def_tpl = new ilTemplate("tpl.glossary_definition_list.html", true, true, "components/ILIAS/Glossary");
429 
430  if ($render_page_container) {
431  $def_tpl->touchBlock("page_container_1");
432  $def_tpl->touchBlock("page_container_2");
433  }
434 
435  if ($render_term) {
436  $def_tpl->setVariable("TXT_TERM", $term->getTerm());
437  }
438  $this->mobs = array();
439 
440  $page_gui = new ilGlossaryDefPageGUI($term_id);
441  $this->basicPageGuiInit($page_gui);
442  $page_gui->setGlossary($this->glossary);
443  $page_gui->setOutputMode($a_page_mode);
444  $page_gui->setStyleId($this->content_style_domain->getEffectiveStyleId());
445  $page = $page_gui->getPageObject();
446 
447  // internal links
448  $page->buildDom();
449 
450  if ($this->offlineMode()) {
451  $page_gui->setOutputMode("offline");
452  $page_gui->setOfflineDirectory($this->getOfflineDirectory());
453  }
454  $page_gui->setFullscreenLink($this->getLink($ref_id, "fullscreen", $term_id));
455 
456  $page_gui->setTemplateOutput(false);
457  $page_gui->setRawPageContent(true);
458  if (!$this->offlineMode()) {
459  $output = $page_gui->showPage();
460  } else {
461  $output = $page_gui->presentation($page_gui->getOutputMode());
462  }
463 
464  $def_tpl->setCurrentBlock("definition");
465  $def_tpl->setVariable("PAGE_CONTENT", $output);
466  $def_tpl->parseCurrentBlock();
467 
468  // display possible backlinks
469  $sources = ilInternalLink::_getSourcesOfTarget('git', $this->term_id, 0);
470 
471  if ($sources) {
472  $backlist_shown = false;
473  foreach ($sources as $src) {
474  $type = explode(':', $src['type']);
475 
476  if ($type[0] == 'lm' && $type[1] == 'pg') {
477  $title = ilLMPageObject::_getPresentationTitle($src['id']);
478  $lm_id = ilLMObject::_lookupContObjID($src['id']);
479  $lm_title = ilObject::_lookupTitle($lm_id);
480  $def_tpl->setCurrentBlock('backlink_item');
481  $ref_ids = ilObject::_getAllReferences($lm_id);
482  $access = false;
483  foreach ($ref_ids as $rid) {
484  if ($ilAccess->checkAccess("read", "", $rid)) {
485  $access = true;
486  }
487  }
488  if ($access) {
489  $def_tpl->setCurrentBlock("backlink_item");
490  $def_tpl->setVariable("BACKLINK_LINK", ILIAS_HTTP_PATH . "/goto.php?target=" . $type[1] . "_" . $src['id']);
491  $def_tpl->setVariable("BACKLINK_ITEM", $lm_title . ": " . $title);
492  $def_tpl->parseCurrentBlock();
493  $backlist_shown = true;
494  }
495  }
496  }
497  if ($backlist_shown) {
498  $def_tpl->setCurrentBlock("backlink_list");
499  $def_tpl->setVariable("BACKLINK_TITLE", $this->lng->txt('glo_term_used_in'));
500  $def_tpl->parseCurrentBlock();
501  }
502  }
503 
504  if (!$a_get_html) {
505  $tpl->setPermanentLink("git", null, $term_id . "_" . $ref_id);
506 
507  // show taxonomy
508  $this->showTaxonomy();
509  }
510 
511  // highlighting?
512  if ($this->requested_search_str != "" && !$this->offlineMode()) {
513  $cache = ilUserSearchCache::_getInstance($ilUser->getId());
514  $cache->switchSearchType(ilUserSearchCache::LAST_QUERY);
515  $search_string = $cache->getQuery();
516 
517  $p = new ilQueryParser($search_string);
518  $p->parse();
519 
520  $words = $p->getQuotedWords();
521  foreach ($words as $w) {
522  ilTextHighlighterGUI::highlight("ilGloContent", $w, $tpl);
523  }
524  $this->fill_on_load_code = true;
525  }
526  $tpl->setContent($def_tpl->get());
527  if ($this->offlineMode()) {
528  return $tpl->printToString();
529  } elseif ($a_get_html) {
530  return $def_tpl->get();
531  }
532  return "";
533  }
setRightContent(string $a_html)
Sets content of right column.
Class ilObjectMetaDataGUI.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
basicPageGuiInit(\ilPageObjectGUI $a_page_gui)
Basic page gui initialisation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstance(int $a_usr_id)
static _getAllReferences(int $id)
get all reference ids for object ID
setContent(string $a_html)
Sets content for standard template.
printToString()
Use this method to get the finally rendered page as string.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$ref_id
Definition: ltiauth.php:65
static _lookupTitle(int $obj_id)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
static _getPresentationTitle(int $a_pg_id, string $a_mode=self::CHAPTER_TITLE, bool $a_include_numbers=false, bool $a_time_scheduled_activation=false, bool $a_force_content=false, int $a_lm_id=0, string $a_lang="-", bool $a_include_short=false)
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
setPermanentLink(string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
Generates and sets a permanent ilias link.
offlineMode()
checks wether offline content generation is activated
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupContObjID(int $a_id)
get learning module id for lm object
getLink(int $a_ref_id, string $a_cmd="", int $a_term_id=0, string $a_frame="", string $a_type="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listTermByGivenAsPanel()

ilGlossaryPresentationGUI::listTermByGivenAsPanel ( )

list glossary terms

Definition at line 336 of file class.ilGlossaryPresentationGUI.php.

References $ctrl, and ilCtrl\redirectByClass().

Referenced by listTerms().

336  : void
337  {
338  $ilCtrl = $this->ctrl;
339 
340  $ilCtrl->redirectByClass("ilPresentationFullGUI", "show");
341  }
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ listTermByGivenAsTable()

ilGlossaryPresentationGUI::listTermByGivenAsTable ( )

list glossary terms

Definition at line 319 of file class.ilGlossaryPresentationGUI.php.

References $access, $ctrl, $lng, and $tpl.

Referenced by listTerms().

319  : void
320  {
321  $ilCtrl = $this->ctrl;
322  $ilAccess = $this->access;
323  $lng = $this->lng;
324  $tpl = $this->tpl;
325 
326  if (!$ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
327  throw new ilPermissionException($lng->txt("permission_denied"));
328  }
329 
330  $ilCtrl->redirectByClass("ilPresentationTableGUI", "show");
331  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
+ Here is the caller graph for this function:

◆ listTerms()

ilGlossaryPresentationGUI::listTerms ( )

Definition at line 288 of file class.ilGlossaryPresentationGUI.php.

References $access, $ctrl, $lng, $nav_history, $tabs_gui, $toolbar, ILIAS\Repository\ctrl(), listTermByGivenAsPanel(), listTermByGivenAsTable(), and offlineMode().

288  : void
289  {
290  $ilNavigationHistory = $this->nav_history;
291  $ilAccess = $this->access;
292  $lng = $this->lng;
293  $ilToolbar = $this->toolbar;
294  $ilCtrl = $this->ctrl;
295  $ilTabs = $this->tabs_gui;
296 
297  if (!$ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
298  throw new ilPermissionException($lng->txt("permission_denied"));
299  }
300 
301  $ret = "";
302  if ($this->glossary->getPresentationMode() == "full_def") {
303  $this->listTermByGivenAsPanel();
304  } else {
305  if (!$this->offlineMode()) {
306  $ilNavigationHistory->addItem(
307  $this->requested_ref_id,
308  $this->ctrl->getLinkTarget($this, "listTerms"),
309  "glo"
310  );
311  }
312  $this->listTermByGivenAsTable();
313  }
314  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:

◆ media()

ilGlossaryPresentationGUI::media ( string  $a_mode = "media")

show media object

Definition at line 544 of file class.ilGlossaryPresentationGUI.php.

References $params, ilMediaItem\_getMapAreasIntLinks(), ILIAS\Repository\ctrl(), ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), getLink(), ilUtil\getStyleSheetLocation(), ilFileUtils\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, ilObjMediaObject\isTypeAllowed(), and offlineMode().

Referenced by fullscreen().

544  : string
545  {
546  $this->tpl = new ilGlobalTemplate("tpl.fullscreen.html", true, true, "components/ILIAS/COPage");
547  $this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
548  $this->tpl->setVariable(
549  "LOCATION_CONTENT_STYLESHEET",
550  ilObjStyleSheet::getContentStylePath($this->content_style_domain->getEffectiveStyleId())
551  );
552 
553  //$int_links = $page_object->getInternalLinks();
554  $med_links = ilMediaItem::_getMapAreasIntLinks($this->requested_mob_id);
555 
556  // later
557  //$link_xml = $this->getLinkXML($med_links, $this->getLayoutLinkTargets());
558 
559  $link_xml = "";
560 
561  $media_obj = new ilObjMediaObject($this->requested_mob_id);
562 
563  $xml = "<dummy>";
564  // todo: we get always the first alias now (problem if mob is used multiple
565  // times in page)
566  $xml .= $media_obj->getXML(IL_MODE_ALIAS);
567  $xml .= $media_obj->getXML(IL_MODE_OUTPUT);
568  $xml .= $link_xml;
569  $xml .= "</dummy>";
570 
571  if (!$this->offlineMode()) {
572  $enlarge_path = ilUtil::getImagePath("media/enlarge.svg", false, "output");
573  $wb_path = ilFileUtils::getWebspaceDir("output") . "/";
574  } else {
575  $enlarge_path = "images/media/enlarge.svg";
576  $wb_path = "";
577  }
578 
579  $mode = $a_mode;
580 
581  $this->ctrl->setParameter($this, "obj_type", "MediaObject");
582  $fullscreen_link =
583  $this->getLink($this->requested_ref_id, "fullscreen");
584  $this->ctrl->clearParameters($this);
585 
586  $params = array('mode' => $mode, 'enlarge_path' => $enlarge_path,
587  'link_params' => "ref_id=" . $this->requested_ref_id,'fullscreen_link' => $fullscreen_link,
588  'enable_html_mob' => ilObjMediaObject::isTypeAllowed("html") ? "y" : "n",
589  'ref_id' => $this->requested_ref_id, 'pg_frame' => "", 'webspace_path' => $wb_path);
590  $output = $this->xsl->process($xml, $params);
591 
592  // unmask user html
593  $this->tpl->setVariable("MEDIA_CONTENT", $output);
594 
595  $this->tpl->parseCurrentBlock();
596  if ($this->offlineMode()) {
597  $html = $this->tpl->get();
598  return $html;
599  }
600  return "";
601  }
static getWebspaceDir(string $mode="filesystem")
get webspace directory
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
special template class to simplify handling of ITX/PEAR
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
static isTypeAllowed(string $a_type)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static _getMapAreasIntLinks(int $a_mob_id)
get all internal links of map areas of a mob
const IL_MODE_ALIAS
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
offlineMode()
checks wether offline content generation is activated
const IL_MODE_OUTPUT
getLink(int $a_ref_id, string $a_cmd="", int $a_term_id=0, string $a_frame="", string $a_type="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ offlineMode()

ilGlossaryPresentationGUI::offlineMode ( )

checks wether offline content generation is activated

Definition at line 162 of file class.ilGlossaryPresentationGUI.php.

References $offline.

Referenced by basicPageGuiInit(), executeCommand(), getLink(), getPresentationTable(), getTabs(), listDefinitions(), listTerms(), media(), outputInfoScreen(), setContentStyles(), and showTaxonomy().

162  : bool
163  {
164  return $this->offline;
165  }
+ Here is the caller graph for this function:

◆ outputInfoScreen()

ilGlossaryPresentationGUI::outputInfoScreen ( )

Definition at line 884 of file class.ilGlossaryPresentationGUI.php.

References $access, $tabs_gui, ilObjGlossaryGUI\addUsagesToInfo(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), offlineMode(), and setTabs().

Referenced by executeCommand().

884  : string
885  {
886  $ilAccess = $this->access;
887  $ilTabs = $this->tabs_gui;
888 
889  $this->setTabs();
890  $ilTabs->activateTab("info");
891  $this->lng->loadLanguageModule("meta");
892 
893  $info = new ilInfoScreenGUI($this->glossary_gui);
894  $info->enablePrivateNotes();
895  //$info->enableLearningProgress();
896 
897  $info->enableNews();
898  if ($ilAccess->checkAccess("write", "", $this->requested_ref_id)) {
899  $info->enableNewsEditing();
900  $news_set = new ilSetting("news");
901  $enable_internal_rss = $news_set->get("enable_rss_for_internal");
902  if ($enable_internal_rss) {
903  $info->setBlockProperty("news", "settings", true);
904  }
905  }
906 
907  // show standard meta data section
908  $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
909 
910  ilObjGlossaryGUI::addUsagesToInfo($info, $this->glossary->getId());
911 
912  if ($this->offlineMode()) {
913  $this->tpl->setContent($info->getHTML());
914  return $this->tpl->get();
915  } else {
916  // forward the command
917  $this->ctrl->forwardCommand($info);
918  }
919  return "";
920  }
static addUsagesToInfo(ilInfoScreenGUI $info, int $glo_id)
Add usages to info screen.
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareOutput()

ilGlossaryPresentationGUI::prepareOutput ( )

Definition at line 254 of file class.ilGlossaryPresentationGUI.php.

References ilUtil\getImagePath(), and setLocator().

Referenced by executeCommand().

254  : void
255  {
256  $this->tpl->loadStandardTemplate();
257  $title = $this->glossary->getTitle();
258 
259  $this->tpl->setTitle($title);
260  $this->tpl->setTitleIcon(ilUtil::getImagePath("standard/icon_glo.svg"));
261 
262  $this->setLocator();
263  }
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printView()

ilGlossaryPresentationGUI::printView ( )

Definition at line 762 of file class.ilGlossaryPresentationGUI.php.

References $access, $tpl, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilObjTaxonomy\getSubTreeItems(), initPrintViewSelectionForm(), ILIAS\Repository\int(), listDefinitions(), ILIAS\Repository\lng(), and ilPageObjectGUI\PRINTING.

762  : void
763  {
764  $ilAccess = $this->access;
765  $tpl = $this->tpl;
766 
767  $this->tabs_gui->setBackTarget(
768  $this->lng->txt("back"),
769  $this->ctrl->getLinkTarget($this, "printViewSelection")
770  );
771 
772  if (!$ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
773  return;
774  }
775 
777  $this->form->checkInput();
778 
779  $terms = array();
780  switch ($this->form->getInput("sel_type")) {
781  case "glossary":
782  $ts = $this->glossary->getTermList();
783  foreach ($ts as $t) {
784  $terms[] = $t["id"];
785  }
786  break;
787 
788  case "sel_topic":
789  $t_id = $this->glossary->getTaxonomyId();
790  $items = ilObjTaxonomy::getSubTreeItems("glo", $this->glossary->getId(), "term", $t_id, (int) $this->form->getInput("topic"));
791  foreach ($items as $i) {
792  if ($i["item_type"] == "term") {
793  $terms[] = $i["item_id"];
794  }
795  }
796  break;
797 
798  case "selection":
799  $terms = $this->form->getInput("obj_id");
800  break;
801  }
802 
803  //$tpl->addCss(ilObjStyleSheet::getContentPrintStyle());
804  $tpl->addOnLoadCode("il.Util.print();");
805 
806  // determine target frames for internal links
807 
808  $page_content = "";
809  foreach ($terms as $t_id) {
810  $page_content .= $this->listDefinitions($this->requested_ref_id, $t_id, true, true, ilPageObjectGUI::PRINTING);
811  }
812  $tpl->setContent($page_content);
813  }
initPrintViewSelectionForm()
Init print view selection form.
static getSubTreeItems(string $a_comp, int $a_obj_id, string $a_item_type, int $a_tax_id, $a_node)
Get all assigned items under a node.
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
listDefinitions(int $a_ref_id=0, int $a_term_id=0, bool $a_get_html=false, bool $render_term=true, string $a_page_mode=ilPageObjectGUI::PRESENTATION, bool $render_page_container=true)
list definitions of a term
+ Here is the call graph for this function:

◆ printViewSelection()

ilGlossaryPresentationGUI::printViewSelection ( )

Definition at line 688 of file class.ilGlossaryPresentationGUI.php.

References $ctrl, $tabs_gui, $tpl, ILIAS\Repository\form(), initPrintViewSelectionForm(), and setTabs().

688  : void
689  {
690  $ilCtrl = $this->ctrl;
691  $tpl = $this->tpl;
692  $ilTabs = $this->tabs_gui;
693 
694  $this->setTabs();
695  $ilTabs->activateTab("print_view");
696 
698 
699  $tpl->setContent($this->form->getHTML());
700  }
initPrintViewSelectionForm()
Init print view selection form.
setContent(string $a_html)
Sets content for standard template.
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:

◆ setContentStyles()

ilGlossaryPresentationGUI::setContentStyles ( )
protected

Definition at line 343 of file class.ilGlossaryPresentationGUI.php.

References $tpl, ILIAS\UICore\GlobalTemplate\addCss(), ilObjStyleSheet\getSyntaxStylePath(), and offlineMode().

Referenced by listDefinitions().

343  : void
344  {
345  $tpl = $this->tpl;
346 
347  if (!$this->offlineMode()) {
348  $this->content_style_gui->addCss($tpl, $this->glossary->getRefId());
350  } else {
351  $tpl->addCss("content.css");
352  $tpl->addCss("syntaxhighlight.css");
353  }
354  }
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLocator()

ilGlossaryPresentationGUI::setLocator ( )

Definition at line 603 of file class.ilGlossaryPresentationGUI.php.

Referenced by listDefinitions(), and prepareOutput().

603  : void
604  {
605  $gloss_loc = new ilGlossaryLocatorGUI();
606  $gloss_loc->setMode("presentation");
607  if (!empty($this->term_id)) {
608  $term = new ilGlossaryTerm($this->term_id);
609  $gloss_loc->setTerm($term);
610  }
611  $gloss_loc->setGlossary($this->glossary);
612  $gloss_loc->display();
613  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ setOfflineDirectory()

ilGlossaryPresentationGUI::setOfflineDirectory ( string  $a_dir)

Definition at line 167 of file class.ilGlossaryPresentationGUI.php.

Referenced by __construct().

167  : void
168  {
169  $this->offline_dir = $a_dir;
170  }
+ Here is the caller graph for this function:

◆ setOfflineMode()

ilGlossaryPresentationGUI::setOfflineMode ( bool  $a_offline = true)

set offline mode (content is generated for offline package)

Definition at line 154 of file class.ilGlossaryPresentationGUI.php.

154  : void
155  {
156  $this->offline = $a_offline;
157  }

◆ setTabs()

ilGlossaryPresentationGUI::setTabs ( )

Definition at line 630 of file class.ilGlossaryPresentationGUI.php.

References getTabs().

Referenced by executeCommand(), outputInfoScreen(), printViewSelection(), and showFlashcards().

630  : void
631  {
632  $this->getTabs();
633  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showFlashcards()

ilGlossaryPresentationGUI::showFlashcards ( )

Definition at line 956 of file class.ilGlossaryPresentationGUI.php.

References $nav_history, $tabs_gui, ILIAS\Repository\ctrl(), and setTabs().

956  : void
957  {
958  $ilTabs = $this->tabs_gui;
959  $ilNavigationHistory = $this->nav_history;
960 
961  $this->setTabs();
962  $ilTabs->activateTab("flashcards");
963  $ilNavigationHistory->addItem(
964  $this->requested_ref_id,
965  $this->ctrl->getLinkTarget($this, "showFlashcards"),
966  "glo"
967  );
968  $flashcards = new ilGlossaryFlashcardGUI();
969  $flashcards->listBoxes();
970  }
GUI class for glossary flashcards.
+ Here is the call graph for this function:

◆ showTaxonomy()

ilGlossaryPresentationGUI::showTaxonomy ( )

Definition at line 922 of file class.ilGlossaryPresentationGUI.php.

References $ctrl, offlineMode(), ilTaxonomyGSToolProvider\SHOW_TAX_TREE, ilTaxonomyGSToolProvider\TAX_ID, ilTaxonomyGSToolProvider\TAX_TREE_CMD, ilTaxonomyGSToolProvider\TAX_TREE_GUI_PATH, and ilTaxonomyGSToolProvider\TAX_TREE_PARENT_CMD.

Referenced by executeCommand(), and listDefinitions().

922  : void
923  {
924  $ctrl = $this->ctrl;
925 
926  if ($this->offlineMode() || !$this->tax_manager->showInPresentation()) {
927  return;
928  }
929 
930  $tax_id = $this->tax_manager->getTaxonomyId();
931 
932  $tool_context = $this->global_screen->tool()->context()->current();
933 
934  $tool_context->addAdditionalData(
936  true
937  );
938  $tool_context->addAdditionalData(
940  [self::class]
941  );
942  $tool_context->addAdditionalData(
944  $tax_id
945  );
946  $tool_context->addAdditionalData(
948  "listTerms"
949  );
950  $tool_context->addAdditionalData(
952  "showTaxonomy"
953  );
954  }
offlineMode()
checks wether offline content generation is activated
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

◆ $content_style_domain

ILIAS Style Content Object ObjectFacade ilGlossaryPresentationGUI::$content_style_domain
protected

Definition at line 60 of file class.ilGlossaryPresentationGUI.php.

◆ $content_style_gui

ILIAS Style Content GUIService ilGlossaryPresentationGUI::$content_style_gui
protected

Definition at line 59 of file class.ilGlossaryPresentationGUI.php.

◆ $content_style_service

ILIAS Style Content Service ilGlossaryPresentationGUI::$content_style_service
protected

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

◆ $ctrl

◆ $export_format

string ilGlossaryPresentationGUI::$export_format
protected

Definition at line 36 of file class.ilGlossaryPresentationGUI.php.

Referenced by __construct().

◆ $fill_on_load_code

bool ilGlossaryPresentationGUI::$fill_on_load_code
protected

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

◆ $form

ilPropertyFormGUI ilGlossaryPresentationGUI::$form
protected

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

◆ $global_screen

ILIAS GlobalScreen Services ilGlossaryPresentationGUI::$global_screen
protected

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

◆ $glossary

ilObjGlossary ilGlossaryPresentationGUI::$glossary
protected

Definition at line 44 of file class.ilGlossaryPresentationGUI.php.

◆ $glossary_gui

ilObjGlossaryGUI ilGlossaryPresentationGUI::$glossary_gui
protected

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

◆ $gui

ILIAS Glossary InternalGUIService ilGlossaryPresentationGUI::$gui
protected

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

◆ $help

ilHelpGUI ilGlossaryPresentationGUI::$help
protected

Definition at line 43 of file class.ilGlossaryPresentationGUI.php.

Referenced by getTabs().

◆ $lng

◆ $mobs

array ilGlossaryPresentationGUI::$mobs
protected

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

◆ $nav_history

ilNavigationHistory ilGlossaryPresentationGUI::$nav_history
protected

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

Referenced by listTerms(), and showFlashcards().

◆ $offline

bool ilGlossaryPresentationGUI::$offline
protected

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

Referenced by offlineMode().

◆ $offline_dir

string ilGlossaryPresentationGUI::$offline_dir
protected

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

Referenced by getOfflineDirectory().

◆ $requested_def_page_id

int ilGlossaryPresentationGUI::$requested_def_page_id
protected

Definition at line 54 of file class.ilGlossaryPresentationGUI.php.

◆ $requested_file_id

string ilGlossaryPresentationGUI::$requested_file_id
protected

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

◆ $requested_letter

string ilGlossaryPresentationGUI::$requested_letter
protected

Definition at line 53 of file class.ilGlossaryPresentationGUI.php.

◆ $requested_mob_id

int ilGlossaryPresentationGUI::$requested_mob_id
protected

Definition at line 57 of file class.ilGlossaryPresentationGUI.php.

◆ $requested_ref_id

int ilGlossaryPresentationGUI::$requested_ref_id
protected

Definition at line 52 of file class.ilGlossaryPresentationGUI.php.

Referenced by getTabs(), and listDefinitions().

◆ $requested_search_str

string ilGlossaryPresentationGUI::$requested_search_str
protected

Definition at line 55 of file class.ilGlossaryPresentationGUI.php.

◆ $tabs_gui

ilTabsGUI ilGlossaryPresentationGUI::$tabs_gui
protected

◆ $tax

ilObjTaxonomy ilGlossaryPresentationGUI::$tax
protected

Definition at line 50 of file class.ilGlossaryPresentationGUI.php.

◆ $tax_id

int ilGlossaryPresentationGUI::$tax_id
protected

Definition at line 49 of file class.ilGlossaryPresentationGUI.php.

◆ $tax_manager

ILIAS Glossary Taxonomy TaxonomyManager ilGlossaryPresentationGUI::$tax_manager
protected

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

◆ $tax_node

int ilGlossaryPresentationGUI::$tax_node
protected

Definition at line 48 of file class.ilGlossaryPresentationGUI.php.

◆ $term_id

int ilGlossaryPresentationGUI::$term_id
protected

Definition at line 51 of file class.ilGlossaryPresentationGUI.php.

Referenced by listDefinitions().

◆ $toolbar

ilToolbarGUI ilGlossaryPresentationGUI::$toolbar
protected

Definition at line 41 of file class.ilGlossaryPresentationGUI.php.

Referenced by listTerms().

◆ $tpl

◆ $user

ilObjUser ilGlossaryPresentationGUI::$user
protected

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

Referenced by listDefinitions().

◆ $xsl

ILIAS COPage Xsl XslManager ilGlossaryPresentationGUI::$xsl
protected

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


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