ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilContainerLinkListGUI Class Reference

Class ilContainerLinkListGUI. More...

+ Collaboration diagram for ilContainerLinkListGUI:

Public Member Functions

 ilContainerLinkListGUI ()
 Constructor @access public. More...
 
executeCommand ()
 
 show ()
 

Data Fields

 $ctrl
 

Detailed Description

Class ilContainerLinkListGUI.

Author
Stefan Meyer alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

@ilCtrl_Calls ilContainerLinkListGUI:

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

Member Function Documentation

◆ executeCommand()

& ilContainerLinkListGUI::executeCommand ( )

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

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

References $cmd.

◆ ilContainerLinkListGUI()

ilContainerLinkListGUI::ilContainerLinkListGUI ( )

Constructor @access public.

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

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

References $ilCtrl.

◆ show()

ilContainerLinkListGUI::show ( )

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

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", "dbk", "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 }
global $tpl
Definition: ilias.php:8
$_GET["client_id"]
special template class to simplify handling of ITX/PEAR
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
exit
Definition: login.php:54
global $lng
Definition: privfeed.php:40

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

+ 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: