ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMembershipOverviewGUI Class Reference

Membership overview ilMembershipOverviewGUI: ilMembershipBlockGUI ilMembershipOverviewGUI: ilColumnGUI. 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

Constructor & Destructor Documentation

◆ __construct()

ilMembershipOverviewGUI::__construct ( )

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

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

34  {
35  global $DIC;
36 
37  $this->ctrl = $DIC->ctrl();
38  $this->lng = $DIC->language();
39  $this->main_tpl = $DIC->ui()->mainTemplate();
40  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilMembershipOverviewGUI::executeCommand ( )

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

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

42  : void
43  {
45  $next_class = $ctrl->getNextClass($this);
46  $cmd = $ctrl->getCmd("show");
47  $this->main_tpl->setTitle($this->lng->txt("my_courses_groups"));
48  switch ($next_class) {
49  case strtolower(ilMembershipBlockGUI::class):
50  $ctrl->setReturn($this, "show");
51  $block = new ilMembershipBlockGUI();
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  }
getCmd(?string $fallback_command=null)
Returns the command passed with the current POST or GET request and fires an according ilCtrlEvent...
getNextClass($a_gui_class=null)
Returns the fully-qualified classname of the next class in the control flow.
+ Here is the call graph for this function:

◆ show()

ilMembershipOverviewGUI::show ( )
protected

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

References $lng, $main_tpl, ilUtil\getImagePath(), ILIAS\UICore\GlobalTemplate\setContent(), ILIAS\UICore\GlobalTemplate\setTitle(), ILIAS\UICore\GlobalTemplate\setTitleIcon(), and ilLanguage\txt().

66  : void
67  {
69  $lng = $this->lng;
70 
71  $main_tpl->setTitle($lng->txt("my_courses_groups"));
72  $main_tpl->setTitleIcon(\ilUtil::getImagePath("standard/icon_crgr.svg"));
73 
74  $block = new ilMembershipBlockGUI();
75  $main_tpl->setContent($block->getHTML());
76  }
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...
setContent(string $a_html)
Sets content for standard template.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
ilGlobalTemplateInterface $main_tpl
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setTitleIcon(string $a_icon_path, string $a_icon_desc="")
set title icon
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrlInterface ilMembershipOverviewGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $lng

ilLanguage ilMembershipOverviewGUI::$lng
protected

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

Referenced by show().

◆ $main_tpl

ilGlobalTemplateInterface ilMembershipOverviewGUI::$main_tpl
protected

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

Referenced by show().


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