ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilLMSlateTocRendererGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
11 {
15  protected $service;
16 
21  {
22  global $DIC;
23 
24  $this->user = $DIC->user();
25  $this->service = $service;
26  }
27 
33  public function render()
34  {
35  $fac = new ilLMTOCExplorerGUIFactory();
36 
37  $exp = $fac->getExplorer($this->service, "ilTOC");
38  //if (!$exp->handleCommand())
39  return $exp->getHTML();
40  }
41 
46  public function renderLSToc(\LSTOCBuilder $toc)
47  {
48  $fac = new ilLMTOCExplorerGUIFactory();
49  $exp = $fac->getExplorer($this->service, "ilTOC");
50  $exp->renderLSToc($toc);
51  }
52 }
__construct(ilLMPresentationService $service)
Constructor.
user()
Definition: user.php:4
renderLSToc(\LSTOCBuilder $toc)
Render into ls toc.
Class LSTOCBuilder.
global $DIC
Definition: goto.php:24
Main service init and factory.