ILIAS  release_8 Revision v8.24
ilMembershipOverviewGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilMembershipOverviewGUI:
+ Collaboration diagram for ilMembershipOverviewGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Member Functions

 show ()
 

Protected Attributes

ilCtrlInterface $ctrl
 
ilLanguage $lng
 
ilGlobalTemplateInterface $main_tpl
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Membership overview @ilCtrl_Calls ilMembershipOverviewGUI: ilPDMembershipBlockGUI

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilMembershipOverviewGUI::__construct ( )

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

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

References $DIC, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilMembershipOverviewGUI::executeCommand ( )

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

41 : void
42 {
44 $next_class = $ctrl->getNextClass($this);
45 $cmd = $ctrl->getCmd("show");
46 $this->main_tpl->setTitleIcon(ilUtil::getImagePath('icon_crgr.svg'));
47 $this->main_tpl->setTitle($this->lng->txt("my_courses_groups"));
48 switch ($next_class) {
49 case "ilpdmembershipblockgui":
50 $ctrl->setReturn($this, "show");
51 $block = new ilPDMembershipBlockGUI(true);
52 $ret = $this->ctrl->forwardCommand($block);
53 if ($ret != "") {
54 $this->main_tpl->setContent($ret);
55 }
56 break;
57
58 default:
59 if ($cmd === "show") {
60 $this->$cmd();
61 }
62 }
63 $this->main_tpl->printToStdout();
64 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
getCmd(string $fallback_command=null)
Returns the command passed with the current POST or GET request.
getNextClass($a_gui_class=null)
Returns the fully-qualified classname of the next class in the control flow.
setReturn(object $a_gui_obj, string $a_cmd=null)
Sets the return command of a given GUI object.

References $ctrl, ILIAS\Repository\ctrl(), ilCtrlInterface\getCmd(), ilUtil\getImagePath(), ilCtrlInterface\getNextClass(), ILIAS\Repository\lng(), and ilCtrlInterface\setReturn().

+ Here is the call graph for this function:

◆ show()

ilMembershipOverviewGUI::show ( )
protected

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

66 : void
67 {
70
71 $main_tpl->setTitle($lng->txt("my_courses_groups"));
72
73 $block = new ilPDMembershipBlockGUI(true);
74 $main_tpl->setContent($block->getHTML());
75 }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
ilGlobalTemplateInterface $main_tpl
setContent(string $a_html)
Sets content for standard template.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.

References $lng, $main_tpl, ilGlobalTemplateInterface\setContent(), ilGlobalTemplateInterface\setTitle(), and ilLanguage\txt().

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilMembershipOverviewGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $lng

ilLanguage ilMembershipOverviewGUI::$lng
protected

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

Referenced by show().

◆ $main_tpl

ilGlobalTemplateInterface ilMembershipOverviewGUI::$main_tpl
protected

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

Referenced by show().


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