Class ilContainerLinkListGUI. More...
Public Member Functions | |
| ilContainerLinkListGUI () | |
| Constructor public. | |
| & | executeCommand () |
| show () | |
Data Fields | |
| $ctrl | |
Class ilContainerLinkListGUI.
Definition at line 35 of file class.ilContainerLinkListGUI.php.
| & ilContainerLinkListGUI::executeCommand | ( | ) |
Definition at line 50 of file class.ilContainerLinkListGUI.php.
References $cmd.
| ilContainerLinkListGUI::ilContainerLinkListGUI | ( | ) |
Constructor public.
Definition at line 43 of file class.ilContainerLinkListGUI.php.
References $ilCtrl.
{
global $ilCtrl;
$this->ctrl =& $ilCtrl;
}
| ilContainerLinkListGUI::show | ( | ) |
Definition at line 66 of file class.ilContainerLinkListGUI.php.
References $_GET, $lng, $tpl, 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;
}
Here is the call graph for this function:| ilContainerLinkListGUI::$ctrl |
Definition at line 37 of file class.ilContainerLinkListGUI.php.
1.7.1