ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilContainerLinkListGUI Class Reference

Class ilContainerLinkListGUI. More...

+ Collaboration diagram for ilContainerLinkListGUI:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 executeCommand ()
 
 show ()
 

Data Fields

 $ctrl
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilContainerLinkListGUI::__construct ( )

Constructor public.

Definition at line 43 of file class.ilContainerLinkListGUI.php.

References $ilCtrl.

44  {
45  global $ilCtrl;
46 
47  $this->ctrl =& $ilCtrl;
48  }
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ executeCommand()

ilContainerLinkListGUI::executeCommand ( )

Definition at line 50 of file class.ilContainerLinkListGUI.php.

References $cmd.

51  {
52  $next_class = $this->ctrl->getNextClass($this);
53  $cmd = $this->ctrl->getCmd();
54  //$this->prepareOutput();
55 
56  switch($next_class)
57  {
58  default:
59  $this->$cmd();
60 
61  break;
62  }
63  return true;
64  }
$cmd
Definition: sahs_server.php:35

◆ show()

ilContainerLinkListGUI::show ( )

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

References $_GET, $lng, $tpl, array, exit, and ilUtil\getStyleSheetLocation().

67  {
68  global $lng, $tree;
69 
70  $tpl = new ilTemplate("tpl.container_link_help.html", true, true,
71  "Services/Container");
72 
73  $type_ordering = array(
74  "cat", "fold", "crs", "grp", "chat", "frm", "lres",
75  "glo", "webr", "file", "exc",
76  "tst", "svy", "mep", "qpl", "spl");
77 
78  $childs = $tree->getChilds($_GET["ref_id"]);
79  foreach($childs as $child)
80  {
81  if (in_array($child["type"], array("lm", "sahs", "htlm")))
82  {
83  $cnt["lres"]++;
84  }
85  else
86  {
87  $cnt[$child["type"]]++;
88  }
89  }
90 
91  $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
92  $tpl->setVariable("TXT_HELP_HEADER", $lng->txt("help"));
93  foreach($type_ordering as $type)
94  {
95  $tpl->setCurrentBlock("row");
96  $tpl->setVariable("ROWCOL", "tblrow".((($i++)%2)+1));
97  if ($type != "lres")
98  {
99  $tpl->setVariable("TYPE", $lng->txt("objs_".$type).
100  " (".((int)$cnt[$type]).")");
101  }
102  else
103  {
104  $tpl->setVariable("TYPE", $lng->txt("learning_resources").
105  " (".((int)$cnt["lres"]).")");
106  }
107  $tpl->setVariable("TXT_LINK", "[list-".$type."]");
108  $tpl->parseCurrentBlock();
109  }
110  $tpl->show();
111  exit;
112 
113  }
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
$_GET["client_id"]
global $tpl
Definition: ilias.php:8
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
global $lng
Definition: privfeed.php:17
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilContainerLinkListGUI::$ctrl

Definition at line 37 of file class.ilContainerLinkListGUI.php.


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