ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
GlossaryPresentationService.php
Go to the documentation of this file.
1 <?php
2 
4 
5 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
6 
13 {
17  protected $glo;
18 
22  protected $glo_gui;
23 
27  protected $offline;
28 
32  public function __construct(
33  \ilObjUser $user,
34  array $query_params,
35  bool $offline = false,
36  \ilCtrl $ctrl = null
37  ) {
38  global $DIC;
39 
40  $ctrl = (is_null($ctrl))
41  ? $DIC->ctrl()
42  : $ctrl;
43 
44  $this->request = new GlossaryPresentationRequest($query_params);
45  $this->user = $user;
46  $this->ref_id = $this->request->getRequestedRefId();
47  $this->glo_gui = new \ilObjGlossaryGUI([], $this->ref_id, true, false);
48  $this->glo = $this->glo_gui->object;
49  $this->offline = $offline;
50  }
51 
55  public function getGlossaryGUI() : \ilObjGlossaryGUI
56  {
57  return $this->glo_gui;
58  }
59 
63  public function getGlossary() : \ilObjGlossary
64  {
65  return $this->glo;
66  }
67 
73  public function getRequest()
74  {
75  return $this->request;
76  }
77 }
Class ilGlossaryGUI.
This class provides processing control methods.
Class ilObjGlossary.
__construct(\ilObjUser $user, array $query_params, bool $offline=false, \ilCtrl $ctrl=null)
Constructor.
user()
Definition: user.php:4
global $DIC
Definition: goto.php:24