ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilContainerLinkListGUI Class Reference

Class ilContainerLinkListGUI. More...

+ Collaboration diagram for ilContainerLinkListGUI:

Public Member Functions

 ilContainerLinkListGUI ()
 Constructor public.
executeCommand ()
 show ()

Data Fields

 $ctrl

Detailed Description

Member Function Documentation

& ilContainerLinkListGUI::executeCommand ( )

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

References $cmd.

{
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
//$this->prepareOutput();
switch($next_class)
{
default:
$this->$cmd();
break;
}
return true;
}
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, $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", "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();
}

+ Here is the call graph for this function:

Field Documentation

ilContainerLinkListGUI::$ctrl

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


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