ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
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
12
class
ilMembershipOverviewGUI
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
{
47
$ctrl
=
$this->ctrl
;
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
{
76
$main_tpl
=
$this->main_tpl
;
77
$lng
=
$this->lng
;
78
79
$main_tpl
->setTitle(
$lng
->txt(
"my_courses_groups"
));
80
81
$block =
new
ilPDMembershipBlockGUI
(
true
);
82
$main_tpl
->setContent($block->getHTML());
83
}
84
}
php
An exception for terminatinating execution or to throw for unit testing.
ilMembershipOverviewGUI
Membership overview.
Definition:
class.ilMembershipOverviewGUI.php:13
ilMembershipOverviewGUI\$main_tpl
$main_tpl
Definition:
class.ilMembershipOverviewGUI.php:28
ilMembershipOverviewGUI\show
show()
Show.
Definition:
class.ilMembershipOverviewGUI.php:74
ilMembershipOverviewGUI\$lng
$lng
Definition:
class.ilMembershipOverviewGUI.php:22
ilMembershipOverviewGUI\$ctrl
$ctrl
Definition:
class.ilMembershipOverviewGUI.php:17
ilMembershipOverviewGUI\executeCommand
executeCommand()
Execute command.
Definition:
class.ilMembershipOverviewGUI.php:45
ilMembershipOverviewGUI\__construct
__construct()
Constructor.
Definition:
class.ilMembershipOverviewGUI.php:33
ilPDMembershipBlockGUI
Memberships block.
Definition:
class.ilPDMembershipBlockGUI.php:13
$ret
$ret
Definition:
parser.php:6
$DIC
$DIC
Definition:
xapitoken.php:46
Services
Membership
classes
class.ilMembershipOverviewGUI.php
Generated on Sat Oct 4 2025 20:01:02 for ILIAS by
1.9.4 (using
Doxyfile
)