ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMembershipOverviewGUI.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
13{
17 protected $ctrl;
18
22 protected $lng;
23
24
28 protected $main_tpl;
29
33 public function __construct()
34 {
35 global $DIC;
36
37 $this->ctrl = $DIC->ctrl();
38 $this->lng = $DIC->language();
39 $this->main_tpl = $DIC->ui()->mainTemplate();
40 }
41
45 public function executeCommand()
46 {
48
49 $next_class = $ctrl->getNextClass($this);
50 $cmd = $ctrl->getCmd("show");
51 $this->main_tpl->setTitle($this->lng->txt("my_courses_groups"));
52
53 switch ($next_class) {
54 case "ilpdmembershipblockgui":
55 $ctrl->setReturn($this, "show");
56 $block = new ilPDMembershipBlockGUI(true);
57 $ret = $this->ctrl->forwardCommand($block);
58 if ($ret != "") {
59 $this->main_tpl->setContent($ret);
60 }
61 break;
62
63 default:
64 if (in_array($cmd, array("show"))) {
65 $this->$cmd();
66 }
67 }
68 $this->main_tpl->printToStdout();
69 }
70
74 protected function show()
75 {
78
79 $main_tpl->setTitle($lng->txt("my_courses_groups"));
80
81 $block = new ilPDMembershipBlockGUI(true);
82 $main_tpl->setContent($block->getHTML());
83 }
84}
An exception for terminatinating execution or to throw for unit testing.
$ret
Definition: parser.php:6
$DIC
Definition: xapitoken.php:46