ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMembershipOverviewGUI Class Reference

Membership overview. More...

+ Collaboration diagram for ilMembershipOverviewGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 

Protected Member Functions

 show ()
 Show. More...
 

Protected Attributes

 $ctrl
 
 $lng
 
 $main_tpl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMembershipOverviewGUI::__construct ( )

Constructor.

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

34 {
35 global $DIC;
36
37 $this->ctrl = $DIC->ctrl();
38 $this->lng = $DIC->language();
39 $this->main_tpl = $DIC->ui()->mainTemplate();
40 }
$DIC
Definition: xapitoken.php:46

References $DIC.

Member Function Documentation

◆ executeCommand()

ilMembershipOverviewGUI::executeCommand ( )

Execute command.

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

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 }
$ret
Definition: parser.php:6

References $ctrl, and $ret.

◆ show()

ilMembershipOverviewGUI::show ( )
protected

Show.

Definition at line 74 of file class.ilMembershipOverviewGUI.php.

75 {
78
79 $main_tpl->setTitle($lng->txt("my_courses_groups"));
80
81 $block = new ilPDMembershipBlockGUI(true);
82 $main_tpl->setContent($block->getHTML());
83 }

References $lng, and $main_tpl.

Field Documentation

◆ $ctrl

ilMembershipOverviewGUI::$ctrl
protected

Definition at line 17 of file class.ilMembershipOverviewGUI.php.

Referenced by executeCommand().

◆ $lng

ilMembershipOverviewGUI::$lng
protected

Definition at line 22 of file class.ilMembershipOverviewGUI.php.

Referenced by show().

◆ $main_tpl

ilMembershipOverviewGUI::$main_tpl
protected

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

Referenced by show().


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