Public Member Functions | |
ilContainerLinkListGUI () | |
Constructor public. | |
& | executeCommand () |
show () | |
Data Fields | |
$ctrl |
Definition at line 36 of file class.ilContainerLinkListGUI.php.
& ilContainerLinkListGUI::executeCommand | ( | ) |
Definition at line 51 of file class.ilContainerLinkListGUI.php.
References $cmd.
ilContainerLinkListGUI::ilContainerLinkListGUI | ( | ) |
Constructor public.
Definition at line 44 of file class.ilContainerLinkListGUI.php.
References $ilCtrl.
{ global $ilCtrl; $this->ctrl =& $ilCtrl; }
ilContainerLinkListGUI::show | ( | ) |
Definition at line 67 of file class.ilContainerLinkListGUI.php.
References $_GET, $lng, $tpl, $tree, $type, exit, and ilUtil::getStyleSheetLocation().
{ global $lng, $tree; $tpl = new ilTemplate("tpl.container_link_help.html", true, true); $type_ordering = array( "cat", "fold", "crs", "icrs", "icla", "grp", "chat", "frm", "lres", "glo", "webr", "file", "exc", "tst", "svy", "mep", "qpl", "spl"); $childs = $tree->getChilds($_GET["ref_id"]); foreach($childs as $child) { if (in_array($child["type"], array("lm", "dbk", "sahs", "htlm"))) { $cnt["lres"]++; } else { $cnt[$child["type"]]++; } } $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation()); $tpl->setVariable("TXT_HELP_HEADER", $lng->txt("help")); foreach($type_ordering as $type) { $tpl->setCurrentBlock("row"); $tpl->setVariable("ROWCOL", "tblrow".((($i++)%2)+1)); if ($type != "lres") { $tpl->setVariable("TYPE", $lng->txt("objs_".$type). " (".((int)$cnt[$type]).")"); } else { $tpl->setVariable("TYPE", $lng->txt("learning_resources"). " (".((int)$cnt["lres"]).")"); } $tpl->setVariable("TXT_LINK", "[list-".$type."]"); $tpl->parseCurrentBlock(); } $tpl->show(); exit; }
ilContainerLinkListGUI::$ctrl |
Definition at line 38 of file class.ilContainerLinkListGUI.php.